Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

657
Views
No puedo importar Three.js a mi proyecto: el servidor regresa con un error de 404 (tres.js)

Estaba revisando mi cartera, que funcionaba bien hace unas semanas, y descubrí que mi modelo three.js ya no se muestra (no he modificado nada desde que funcionaba bien), y cuando revisé el errores en la consola, me dio este error: Uncaught TypeError: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../". .
Estaba importando tres.js en un archivo main.js como este: import * as THREE from 'https://cdn.skypack.dev/three' , así que cambié la importación a: import * as THREE from '../node_modules/three/build/three.js' , pero ahora devuelve un error de 404. ¿Qué debo hacer? Esta es mi estructura de archivos:

estructura

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

La forma correcta de instalar three.js se describe aquí:

https://threejs.org/docs/#manual/en/introduction/Instalación

debería ser así:

import * as THREE from 'three';

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!