You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser after Angular 12 update

  angular

After updating from Angular 11 to 12, ng serve is now throwing an error:

You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser

Some answers describe getting this error when importing .css files into .scss/.sass files, but that’s not the case with this codebase.

Anyone else experiencing this error?

The rest of the project code will compile as expected, but now the application won’t run. I’m not sure what code to provide here, but am more than happy to post whatever would be helpful for debugging.

Source: Angular Questions

One Reply to “You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser after Angular 12 update”

  • +1
    We’ve just migrated our project to Angular 12 and are experiencing the same issues when trying to build for production.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.