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

517
Views
Uncaught TypeError: Failed to resolve module specifier "uuid" in Javascript

This is probably a very simple question, but I can't figure it out even after reading many articles. I don't know any Node.js, and I just want to use the uuid generator from here.

When I follow the instruction and put

import { v4 as uuidv4 } from 'uuid';
uuidv4();

The browser tells me "Uncaught TypeError: Failed to resolve module specifier "uuid". Relative references must start with either "/", "./", or "../"." I'm guessing maybe I need to import some .js file from "node_module", so I opened the node_module and only see a lot of files that I don't understand at all. This is very frustrating, and the same problem may occur when I try to use any other npm modules in the future.

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!