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.

Build prod throw error on startup with Firefox ESR 45

See original GitHub issue

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

github_iconTop GitHub Comments

2reactions
ahexdev1commented, Apr 20, 2018

Javarthur, Hi, Did your problem got resolved.

I am also facing same issue.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 13, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1194856 - Startup crash in ErrorLoadingBuiltinSheet
I'm not sure how to proceed. Maybe dump to the crash report the contents of the directory we expect to find the file...
Read more >
Topic: Firefox and Firefox ESR Updates! @ AskWoody
The update fixes Firefox's freezing issue on startup on Windows, Linux, and Mac platforms. The issue may have existed for years but brought...
Read more >
How To Launch Firefox in Selenium using GeckoDriver
Exception in thread “main” org.openqa.selenium.WebDriverException: Timed out waiting 45 seconds for Firefox to start. Build info: version: ...
Read more >
Everytime I run gulp anything, I get a assertion error.
postprocessorFor({ hoverSelectorPrefix: '.is-true-hover ' }), autoprefixer({ browsers: [ "Chrome >= 45", "Firefox ESR", "Edge >= 12", "Explorer ...
Read more >
Firefox - Wikipedia
Mozilla Firefox, or simply Firefox, is a free and open-source web browser developed by the ... Experimental builds and ESREdit.
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