--prod does not work in Firefox ESR 45.9.0
See original GitHub issueHi,
running ´ng serve --prod´ and opening the application in Firefox ESR 45.9.0 throws an exception.
TypeError: this is undefined
Versions
ng: 1.6.5
npm: 5.6.0
Node: 8.9.4
Repro steps
- ng new foobar
- cd foobar
- ng serve --prod
- Open in Firefox ESR 45.9.0
Observed behavior
Blank page, error in console
Desired behavior
Everything works as expected
BR Jakob
Issue Analytics
- State:
- Created 6 years ago
- Reactions:30
- Comments:53 (6 by maintainers)
Top Results From Across the Web
Firefox ESR 45.9.0, See All New Features, Updates and Fixes
Version 45.9.0, first offered to ESR channel users on April 19, 2017. Fixed. Various security fixes. Developer. Developer Information ...
Read more >Have refreshed Firefox 45.9 but unable to update to Firefox-53 ...
I already downloaded Firefox - 53.0.tar.bz2 but websites still report I am using an outdated older version - I was hoping to install...
Read more >Firefox ESR 45.9.0 System Requirements - Mozilla
Firefox will not run at all without the following libraries or packages: GTK+ 3.4 or higher; GLib 2.22 or higher; Pango 1.14 or...
Read more >Firefox ESR Version 45 did end yesterday, when will my ...
Firefox ESR life cycle (https://www.mozilla.org/en-US/firefox/organizations/faq/) states that version 45.9.0 ends on 13th of June. When will ...
Read more >Should I migrate to firefox ESR to keep using XP?
7 replies; 1 has this problem; 59 views; Last reply by Ayrehead ... Note that you can consider to use the Firefox 45.9.0...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi all,
@suau has provided a good summary of this issue in https://github.com/angular/angular-cli/issues/11552, but unfortunately we cannot follow through it with. Reverting to an older version of
uglify-es
might address this problem, but will cause other bugs that have meanwhile been fixed inuglify-es
to manifest themselves again.Updating to a newer version of
uglify-es
is also not an option, because it is not being maintained anymore.The affected versions of Firefox ESR seem to be <50, but according to https://www.mozilla.org/en-US/firefox/organizations/ the current ESR is 52, which is not affected according to https://github.com/angular/angular-cli/issues/9340#issuecomment-368590267.
Given that the latest Firefox ESR should work, together with the stated Angular browser support for Firefox listing
latest
only, and not having a good way to address the problem onuglify-es
itself, we have decided to not take action on this issue.I’m sorry that there isn’t anything we can do right now to address the problem you all are experiencing, but in the future we will be looking at alternatives to
uglify-es
to prevent situations like this. Meanwhile, I suggest updating to the latest Firefox ESR.Same problem here with Firefox 50.1.0. See #9362 Current workaround: instead of using
ng build --prod
useng build --aot --environment=prod --output-hashing=all --sourcemaps=false --extract-css=true --named-chunks=false --build-optimizer=true
The culprit is --target=production