Skip to content

new Worker() doesn't work from a library #29225

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

Closed
1 task
HazzMan2409 opened this issue Dec 24, 2024 · 2 comments
Closed
1 task

new Worker() doesn't work from a library #29225

HazzMan2409 opened this issue Dec 24, 2024 · 2 comments

Comments

@HazzMan2409
Copy link

HazzMan2409 commented Dec 24, 2024

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Creating a new worker with the

new Worker(new URL('<workerfile>', import.meta.url))

syntax doesn't work from within a library in node_modules.

Also see #26991, it is not fixed.

Minimal Reproduction

https://github.com/HazzMan2409/ng-worker-issue/tree/main

Exception or Error


Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 19.0.6
Node: 20.11.0
Package Manager: npm 10.2.4
OS: darwin arm64

Angular: 19.0.5
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1900.6
@angular-devkit/build-angular   19.0.6
@angular-devkit/core            19.0.6
@angular-devkit/schematics      19.0.6
@angular/cli                    19.0.6
@schematics/angular             19.0.6
rxjs                            7.8.1
typescript                      5.6.3
zone.js                         0.15.0

Anything else relevant?

No response

@HazzMan2409 HazzMan2409 changed the title new Worker() doesn't work from a JavaScript file new Worker() doesn't work from a library Dec 24, 2024
@alan-agius4
Copy link
Collaborator

Duplicate of #28994

@alan-agius4 alan-agius4 marked this as a duplicate of #28994 Dec 28, 2024
@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2024
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants