assets/sass/theme/_variables.scss from Css Minimizer with angular 12

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
zornic
Posts: 71
Joined: 09 Dec 2017, 10:12

07 Jul 2021, 09:39

Hi everyone,

after update to angular 12 i've the following errors:

assets/sass/theme/_variables.scss - Error: assets/sass/theme/_variables.scss from Css Minimizer
assets\sass\theme\_variables.scss:8:1: Unknown word
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser [assets/sass/theme/_variables.scss:8,1]
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser

AND

assets/sass/theme/designer/_components.scss - Error: assets/sass/theme/designer/_components.scss from Css Minimizer
assets\sass\theme\designer\_components.scss:4:1: Unknown word
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser [assets/sass/theme/designer/_components.scss:4,1]
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

10 Jul 2021, 22:04

Hi,
Firstly, could you please check your project has fonts files (assets/layout/fonts)?
Also, maybe this documentation (https://angular.io/guide/updating-to-version-12) help you, especially this part;
Critical CSS inlining is now enabled by default. To turn this off, set inlineCritical to false. See PR #20096 and the Style preprocessor options section of Angular workspace configuration.

zornic
Posts: 71
Joined: 09 Dec 2017, 10:12

12 Jul 2021, 14:22

Hi merve7,

thank you, yes this works.

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

14 Jul 2021, 15:00

Glad to hear that :)

Post Reply

Return to “Serenity - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests