-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't resolve worker_threads #1128
Comments
I am also having this issue. I am not using vuelayers BUT I am using openlayers module |
I'm collecting a little what I found here. I'm kind of a beginner to all of this so please apologize if all of this isn't helpful. According to this Stackoverflow answer worker_threads have been introduced to node in v12.
So this can't really be the issue. An issue with the same error message has been resolved once here by setting an alias in nuxt.config.js like so:
How I understand the answer the fflate package somehow imported an old version of node in the browser build of nuxt so that worker_threads could not be found. Not sure how this should be done in our case with web-worker.
I was thinking maybe I can somehow update the web-worker package manually in yarn.lock but the newest version seems to be already installed
|
I updated the reproduction link. plugins/web-worker.js:
nuxt.config.js:
I guess that is to be expected since worker threads should only work on the server. |
Environment
Nuxt project info: 17:59:58
Reproduction
https://stackblitz.com/edit/nuxt-starter-yap9cm
Describe the bug
Moving to nuxt-bridge causes the following console error when vuelayers plugin is imported.
nuxt.config.js:
vuelayers.js:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: