ngDevMode and ngI18nClosureMode undefined error - ng build prod
See original GitHub issueDescribe the bug When I ran prod build, I get `ngI18nClosureMode is not defined’ and ‘ngDevMode is not defined’ error. Nonprod(ng build) build is fine
Builder:
"@angular-builders/custom-webpack"
: “8.2.0”,
Libraries
angular-devkit/build-angular
: ‘0.803.2’Angular CLI:
8.3.1
Angular
:9.0.0-next.3
To fix this issue, I created the global variable as below.
var ngDevMode = false;
var ngI18nClosureMode = false;
This fix works fine but is there a better way to fix this problem?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
ngDevMode and ngI18nClosureMode undefined error
Describe the bug. When I ran prod build, I get `ngI18nClosureMode is not defined' and 'ngDevMode is not defined' error. Nonprod(ng build) build ......
Read more >ngI18nClosureMode is not defined - angular - Stack Overflow
In my case, the error appeared when running ng build --prod , and then deploying in firebase using firebase deploy --only ...
Read more >Toolips ng build –prod error - MDBootstrap
when I was trying to build production of my project we got this error: in Error: TypeError: Cannot read property 'kind' of undefined...
Read more >Ivy compatibility guide - Angular
The Angular team has worked hard to ensure Ivy is as backwards-compatible with the previous rendering engine ("View Engine") as possible.
Read more >Angular `ng build --prod` Error - Medium
You built a library, and tried to use it in a project. When building with --prod you see this unhelpful error: 'Unexpected value...
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
@ash67
This Worked for me:
Path:
web/src/polyfills.browser.ts
extras:
package.json