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

270
Views
Error resolving module specifier “three”. I am using npm to install three.js

I am using npm to install three.js according to official website of three and this is my project:

-> node_modules/three/
-> package-lock.json
-> package.json
-> index.html
-> index.js

my script tag to load script:

<script src="index.js" type="module" defer></script>

my script:

import * as THREE from 'three'
console.log(THREE)

then i open it through local server but at the end i get this error on my browser (firefox dev. edition):

Uncaught TypeError: Error resolving module specifier “three”. Relative module specifiers must start with “./”, “../” or “/”.

seriously I looked everywhere for a solution but can't find.

about 4 years ago · Juan Pablo Isaza
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!