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

89
Views
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
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!