-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Importing multiple Web Workers mixes them up #15188
Closed
ghost opened this issue
Jul 29, 2019
· 3 comments
· Fixed by GoogleChromeLabs/worker-plugin#35 or #15456
Closed
Importing multiple Web Workers mixes them up #15188
ghost opened this issue
Jul 29, 2019
· 3 comments
· Fixed by GoogleChromeLabs/worker-plugin#35 or #15456
Milestone
Comments
Found a workaround here #14582
The unique names solve the problem. |
Worker Plugin 3.2.0 has been published and includes a fix for this. |
mgechev
pushed a commit
that referenced
this issue
Aug 28, 2019
…5456) includes this fix GoogleChromeLabs/worker-plugin#35 which solves the below issues. Fixes #15188 and fixes #14582
mgechev
pushed a commit
that referenced
this issue
Aug 28, 2019
…5456) includes this fix GoogleChromeLabs/worker-plugin#35 which solves the below issues. Fixes #15188 and fixes #14582
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
🐞 bug report
Affected Package
Maybe the bundler.
Is this a regression?
Angular versions <7 didn't have built-in support for Web Workers.
Description
I import multiple Web Workers but when messaging one specific, the messages gets sent and received to/from the wrong Web Worker.
Simple code repro from fresh install:
Expected output:
Actual output:
const bazWorker....
causes the output to becomefoo: Hello from BarWorker
(still wrong)const bazWorker....
andconst barWorker....
yields the correct results🔬 Minimal Reproduction
https://github.com/monocl-oskar/angular-web-worker-problem
🌍 Your Environment
Angular Version:
Anything else relevant?
Hoping I'm missing something obvious, thanks!
The text was updated successfully, but these errors were encountered: