-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
🐞 bug report
Affected Package
The issue is probably caused by package @angular/localize/
Is this a regression?
Yes, the previous version in which this bug was not present was: 8.3.24
Description
When building with
ng build --localize
The build crashes at the end with exit code 1 and the message:
Cannot read property 'startTag' of null
If I omit the 'localize' flag, the build succeeds.
If I run 'ng serve --configuration=' It works just fine.
Console output
[...]
Localized bundle generation complete.
chunk {2} polyfills-es2015.09511dbf2d8d4095a5eb.js (polyfills) 35.7 kB [initial] [rendered]
chunk {3} polyfills-es5.daf0c38b3a8d40ca8fbc.js (polyfills-es5) 127 kB [initial] [rendered]
chunk {1} main-es2015.3d599b43b9ca01c039de.js (main) 1.21 MB [initial] [rendered]
chunk {1} main-es5.3d599b43b9ca01c039de.js (main) 1.38 MB [initial] [rendered]
chunk {0} runtime-es2015.6bd75c31c397efcb90d9.js (runtime) 1.45 kB [entry] [rendered]
chunk {0} runtime-es5.6bd75c31c397efcb90d9.js (runtime) 1.45 kB [entry] [rendered]
chunk {4} styles.fac3127509e320d31319.css (styles) 72.2 kB [initial] [rendered]
Date: 2020-02-13T12:42:21.857Z - Hash: 1319cd48dd54c1cf42f3 - Time: 66232ms
Cannot read property 'startTag' of null
Dist folder
index.html is missing from the dist folder
🔬 Minimal Reproduction
Sadly, I have not been able to get to the root cause and cannot provide a good minimal repo for this issue. Greatly appreciate comments on how to investigate where the error originates from.
🔥 Exception or Error
Cannot read property 'startTag' of null
Exit code: 1
🌍 Your Environment
Angular Version:
Angular CLI: 9.0.2
Node: 12.10.0
OS: linux x64
Angular: 9.0.1
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.900.2
@angular-devkit/build-angular 0.900.2
@angular-devkit/build-optimizer 0.900.2
@angular-devkit/build-webpack 0.900.2
@angular-devkit/core 9.0.2
@angular-devkit/schematics 9.0.2
@angular/cdk 8.2.3
@angular/cli 9.0.2
@angular/material 8.2.3
@ngtools/webpack 9.0.2
@schematics/angular 9.0.2
@schematics/update 0.900.2
rxjs 6.5.4
typescript 3.7.5
webpack 4.41.2
Anything else relevant?
I did try to remove all tags in messages..xlf. Same error (with lots of warning of missing tags of course).