Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

655
Vistas
Cannot import Three.js into my project: server returns with an error of 404 (three.js)

I was checking my portfolio, which was working fine a few weeks ago, and i found out that my three.js model isn't showing anymore (I haven't modified anything since it was working fine.), and when I checked the errors in the console, it gave me this error: Uncaught TypeError: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../"..
I was importing three.js in a main.js file like this: import * as THREE from 'https://cdn.skypack.dev/three', so I changed the import to: import * as THREE from '../node_modules/three/build/three.js', but now it returns an error of 404. what should I do? This is my file structure:

structure

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The proper way to install three.js is described here:

https://threejs.org/docs/#manual/en/introduction/Installation

should be like so:

import * as THREE from 'three';

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda