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

Angular v12 compile error #17518

Closed
Horizont77 opened this issue May 14, 2021 · 13 comments
Closed

Angular v12 compile error #17518

Horizont77 opened this issue May 14, 2021 · 13 comments
Assignees
Labels

Comments

@Horizont77
Copy link

Steps to Reproduce:

  1. ng new client-app

  2. install devextreme devextreme-angular

  3. adding devextreme settings :
    image
    image

  4. npm run build:prod

Results You Received:

image

Results You Expected:

Environment Details:

Visual Studio Code
DevExtreme: 20.2.6, 20.2.7
Angular V12

I think the problem is dx styles (theme.base.css). Without styles I don't get an error.

@Horizont77 Horizont77 changed the title Angular v12 compiler error Angular v12 compile error May 14, 2021
@babich-a babich-a self-assigned this May 14, 2021
@babich-a
Copy link
Contributor

Hi. It seems you use angular-cli to create an application. In this case, the devextreme build command (build-themes) does not work as expected. Moreover, it is not called. So, the theme.base.css file does not exist. I recommend adding devextreme to your project as described here

@Horizont77
Copy link
Author

Hi, i tried everything again. but i still get the same error.

Without dx.light.css I can build (npm run build:prod) the project but with css I can't. I'll send you the project.

ng12-dx.zip

@babich-a
Copy link
Contributor

Angular 12 has an issue with inlined images angular/angular-cli#20760

@Horizont77
Copy link
Author

Thank you for quick feedback

@dansabirov
Copy link

dansabirov commented May 21, 2021

The same issue after updating my project to angular 12 (we are using devextreme 20.2.7)

@bryanvam
Copy link

bryanvam commented Jun 4, 2021

also getting this issue

@sezerkorkmaz
Copy link

Angular.json's optimization section change inlineCritical to false

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

@Adeyosola
Copy link

Angular.json's optimization section change inlineCritical to false

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

This only works for production build. The error still persists in Angular v12 with ng build. (We're using devextreme 21.1.3)

@hamduc7
Copy link

hamduc7 commented Jun 22, 2021

Dear All, is there any solution on this error?

@stale
Copy link

stale bot commented Jul 22, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 22, 2021
@stale
Copy link

stale bot commented Jul 27, 2021

This issue was closed due to inactivity. If you found a bug or have a question about our product, create a new issue on GitHub or submit a ticket in our Support Center.

@stale stale bot closed this as completed Jul 27, 2021
@MarjanGood
Copy link

This issue was closed due to inactivity. If you found a bug or have a question about our product, create a new issue on GitHub or submit a ticket in our Support Center.

hi everybody I have the same issue, Is there any solution for this issue?

@MarjanGood
Copy link

dear lexDX,
I am trying to fix my error and this is my error while I am building my project,

√ Copying assets complete.
× Index html generation failed.
undefined:5:142920: property missing ':'

, but this solution doesn't work for me,
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": false
},
"fonts": false
},

The error still persists in Angular v12 with ng build. (We're using devextreme 21.1.3)
Is there any other solution to solve this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants