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

406
Views
El mapa de importación del lado del cliente no puede ubicar el módulo (error 404)

Estoy intentando importar un módulo en Vanilla JS en el navegador (sin paquete).

El módulo es worker-timers ( https://github.com/chrisguttandin/worker-timers ), que instalé en el mismo directorio que mi index.html a través npm install .

Pero recibo múltiples errores 404, como GET http://127.0.0.1:3000/node_modules/worker-timers/build/es2019/factories/load-worker-timers net::ERR_ABORTED 404 (Not Found)

Mi código mínimo está debajo.

 <body> <script type="importmap"> { "imports": { "worker-timers": "./node_modules/worker-timers/build/es2019/module.js", "worker-timers-broker": "./node_modules/worker-timers-broker/build/es2019/module.js", "worker-timers-worker": "./node_modules/worker-timers-worker/build/es2019/module.js" } } </script> <script type="module"> import * as workerTimers from 'worker-timers'; console.log(workerTimers); </script> </body>

¿Qué estoy haciendo mal?

O, estoy feliz de importarlos de cualquier manera que funcione, si hay una alternativa.

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!