Build prod throw error on startup with Firefox ESR 45
See original GitHub issueI’m submitting a…
[x] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Angular 5 does not work on Firefox ESR version 45 (tested on 45.2.0 and 45.6.0) when the app is built in production mode (ng build -prod
).
But the following commands does work :
ng serve
ng serve --aot
ng build
ng build -prod --aot=false
The app works correctly with chrome, IE Edge or a recent version of Firefox (52, 54).
Expected behavior
Like with Angular 4, it should work when the app is built for production.
Minimal reproduction of the problem with instructions
- Create a new app
- Build the app for the ‘prod’ environnement
- The app works with
An easy way to reproduce the problem is to open https://angular.io/ with firefox ESR 45. The app does not start at all, and there is an error in the console: Error: `TypeError: this is undefined
t() main.9227b8376af048079879.bundle.js:1 t/<() main.9227b8376af048079879.bundle.js:1 t() main.9227b8376af048079879.bundle.js:1 .LMZF/q</t.prototype.get() main.9227b8376af048079879.bundle.js:1 Qt/</<() main.9227b8376af048079879.bundle.js:1 Qt/<() main.9227b8376af048079879.bundle.js:1 Qt/<() main.9227b8376af048079879.bundle.js:1 .cDNt() main.9227b8376af048079879.bundle.js:1 o() inline.421b80f0f331917cd5b3.bundle.js:1 0 main.9227b8376af048079879.bundle.js:1 o() inline.421b80f0f331917cd5b3.bundle.js:1 window.webpackJsonp() inline.421b80f0f331917cd5b3.bundle.js:1 <anonyme> main.9227b8376af048079879.bundle.js:1`
The app work when opening the previous version of angular.io (https://v4.angular.io/docs)
What is the motivation / use case for changing the behavior?
Some of our customers still use older versions of Firefox (in our context, Firefox ESR 45)
Environment
Angular version: 5.2.0
Browser:
- [x] Firefox version 45 (Firefox ESR)
For Tooling issues:
- Node version: 8.9.4
- Platform: Linux, Windows
Others:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:7 (1 by maintainers)
Javarthur, Hi, Did your problem got resolved.
I am also facing same issue.
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.