question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--prod does not work in Firefox ESR 45.9.0

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Reactions:30
  • Comments:53 (6 by maintainers)

github_iconTop GitHub Comments

23reactions
filipesilvacommented, Jul 20, 2018

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 in uglify-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 on uglify-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.

16reactions
TheParad0Xcommented, Jan 24, 2018

Same problem here with Firefox 50.1.0. See #9362 Current workaround: instead of using ng build --prod use ng build --aot --environment=prod --output-hashing=all --sourcemaps=false --extract-css=true --named-chunks=false --build-optimizer=true

The culprit is --target=production

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found