angular-cli: ng -12 upgrade, getting missing property on build for production
ng build --configuration production --base-href /foo/
results in the following: Browser application bundle generation complete. ES5 Bundle generation Complete copying assets complete Index html generation failed. undefined:6:6 property missing ‘:’
would it be possible to get a little more information on how this error can be troubleshot?
🐞 bug report
Affected Package
The issue is caused by package @angular/....Is this a regression?
Yes, the previous version in which this bug was not present was: ....Description
A clear and concise description of the problem...🔬 Minimal Reproduction
https://stackblitz.com/...🔥 Exception or Error
🌍 Your Environment
Angular Version:
Anything else relevant?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (2 by maintainers)
Thank you
“optimization”: { “scripts”: true, “styles”: { “minify”: true, “inlineCritical”: false }, “fonts”: true }
Worked for me ! with
change
optimization: true
inangular.json
to:it has something to do with css
When our project update to 12, we face the same problem. ng serve --hmr -o; It seems everything go welll. ng build --configuration production; The error msg is: ✖ Index html generation failed. undefined:3:102245: property missing ‘:’ Please note where to find more detail, Thanks.
The workaround described in #20760 seems to fix this problem: https://github.com/angular/angular-cli/issues/20760#issuecomment-840608632