-
Notifications
You must be signed in to change notification settings - Fork 26.2k
TypeError: this is undefined #25201
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
Comments
Could you provide a reproduction for this issue, otherwise it can't be analyzed. You may want to use Stackblitz and share the link here. |
It won't reproduce on Stackblitz because it's only for production builds. We have a thread here: angular/angular-cli#9340 It's due to some FF 45-50 incompatibilities with UglifyES. If you follow the workarounds to downgrade your UglifyJsWebpackPlugin to 1.1.5 it goes away. Our site caters to a lot of businesses who are stuck with older Firefox ESR releases due to investments in Firefox add-ons, so the downgrade fixed it for us, but a long term fix from Angular will probably be a minifier change. I'm not sure when that will land.. |
I'm not sure if there is much we can do right now as explained in angular/angular-cli#9340 (comment) In addition to Filipe's comment, another suggestion would be that since affecting only FF I suggest filing an issue against Firefox. Sorry. |
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. |
I'm submitting a...
Current behavior
When building an app with
ng build --prod
and running the application in Firefox 47.0 on windows, I get an error that says:TypeError: this is undefined
which points to bootstrapModuleFactoryExpected behavior
I expected the application to run like normal.
Minimal reproduction of the problem with instructions
ng build --prod
What is the motivation / use case for changing the behavior?
Browser support
Environment
The text was updated successfully, but these errors were encountered: