Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

456
Visualizações
how do you use threejs WITHOUT using node.js, express, or a build tool?

Goal: import the modules and get going...

Problem: the jsm stuff like OrbitControls.js import from 'three'; which results in an error:

[Error] TypeError: Module specifier, 'three' does not start with "/", "./", or "../". promiseReactionJob

Suggestions range anywhere from manually copying the files out of node_modules and modifying the path, to waiting for browsers to support naked paths. In the meantime however I'd really like to get on with my life and use the tool on a standard server...

What's the best practice for NON node servers here?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The offical answer is that these jsm components are listed under "examples" for a reason, you are supposed to duplicate and edit them for your own app, so swapping in absolute paths is completely fine.

Generally I prefer to not touch anything in the node_modules folder, but in this case it's actually recommended by three.js

You can read more about module resolution here.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda