Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production build fails after upgrade to version 12 #20884

Closed
1 of 15 tasks
4nderss opened this issue May 21, 2021 · 2 comments
Closed
1 of 15 tasks

Production build fails after upgrade to version 12 #20884

4nderss opened this issue May 21, 2021 · 2 comments

Comments

@4nderss
Copy link

4nderss commented May 21, 2021

🐞 Bug report

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: 10.1.1

Description

After updating from 10.1.1 to latest version. We can no longer build our applications with the optimization flag set to true.

🔬 Minimal Reproduction

run ng build with optimization set to true

works when its set to false

🔥 Exception or Error



2021-05-21 07:49:47: webpack 5.36.2 compiled in 84034 ms (5e690d36f371e40bd6f2)
✔ ES5 bundle generation complete.
✔ Copying assets complete.
✖ Index html generation failed.
undefined:1:3650594: property missing ':'

🌍 Your Environment


Angular CLI: 12.0.1
Node: 14.15.0
Package Manager: npm 6.14.8
OS: win32 x64

Angular: 12.0.1
... animations, cli, common, compiler, compiler-cli, core
... elements, forms, language-service, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.1
@angular-devkit/build-angular   12.0.1
@angular-devkit/core            12.0.1
@angular-devkit/schematics      12.0.1
@schematics/angular             12.0.1
ng-packagr                      12.0.0
rxjs                            6.6.7
typescript                      4.2.4

Anything else relevant?

Tracing back the update steps I see that bulding works fine in 11.2.

@alan-agius4
Copy link
Collaborator

Duplicate of #20760

@alan-agius4 alan-agius4 marked this as a duplicate of #20760 May 21, 2021
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants