-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
bootstrapWebWorker is transpiled to bootstrapWebworker, which throws a TypeError. #3658
Comments
Hey @manekinekko, how are you transpiling angular? Are you using our gulp tasks or running it through the TypeScript compiler yourself? |
Hi @jteplitz602 I am using angular-class repo. It uses webpack and the tasks are defined in the package.json |
It looks like this is an issue with our npm release. I'll investigate on Monday. For now, the easiest way for you to work around it is to build angular from source since this doesn't appear to be a problem when you build angular directly:
|
Sorry, this actually isn't a bug. We renamed bootstrapWebWorker in a1c53ee, which hasn't landed in npm yet. This should be fixed in the alpha35 release. WebWorker support is still under active development so we're going to be making breaking changes to it for a while. I'd recommend you build from source as part of your app's build pipeline if you plan to use WebWorkers because things are changing so frequently. |
Sure! I understand. It is actually part of the Universal project I'm contributing to. |
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. |
Hi,
I just noticed something weird when playing around with the Web Worker modules. It is about
bootstrapWebWorker
.The TypeScript function name is called
bootstrapWebWorker
(with two capital "W") but the generated JavaScript name seems to turn tobootstrapWebworker
(one capital "W") which throws a TypeError.Here is how to reproduce this:
bootstrap.ts
loader.ts
worker.ts
See screenshot below.
I don't know if this is a TypeScript or Angular2 bug.
Versions information
The text was updated successfully, but these errors were encountered: