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

Error generating production build #159

Closed
eliseurm opened this issue May 31, 2021 · 1 comment
Closed

Error generating production build #159

eliseurm opened this issue May 31, 2021 · 1 comment
Assignees

Comments

@eliseurm
Copy link

This version has been updated for Angular12 and is not being built for production.

ng build --output-path = dist --configuration production

Error:

✖ Index html generation failed.
undefined: 5: 144452: property missing ':'

There seems to be a problem with the way scss is going to be used going forward.

DevExtreme must configure its styles to meet this demand, in other projects I have the same problem.

@LexDX LexDX self-assigned this Jun 3, 2021
@LexDX
Copy link

LexDX commented Jun 3, 2021

Hi @eliseurm,

This issue is related to the regression in the Angular library. Please check this GitHub issue for more information: angular/angular-cli#20760
According to Alan's comment, the issue is caused by Angular-CLI. The Angular-CLI team will fix it in the scope of the following GitHub issue: reworkcss/css#154.

In the meantime, you can use the inlineCritical option to resolve the issue:

"optimization": {
                "scripts": true,
                "styles": {
                  "minify": true,
                  "inlineCritical": false
                },
                "fonts": {
                  "inline": true
                }
              },

@LexDX LexDX closed this as completed Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants