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

88
Vistas
How to use importScripts with quasar

I'm trying to use web workers in my project. It works fine in the dev mode but failed after the build.

Uncaught DOMException: 
Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:4000/js/js/vendor.4a4f636a.js' failed to load.

The file structure is shown as follow

image

It seems that an extra "js/" is added in the link. The correct link for the script file should be http://localhost:4000/js/vendor.4a4f636a.js

To reproduce, I create a small repo. Strangely, it works after removing the for loop in src/worker/load_data.js.

Have I done something wrong? Are there any configurations needed to make this work?

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