Switching from node-sass to dart sass in my angular-cli project Switching from node-sass to dart sass in my angular-cli project angular angular

Switching from node-sass to dart sass in my angular-cli project


FWIW, in order to get angular 7.x to use the sass package and not try to install node-sass, I had to:

  1. remove @angular-devkit/build-angular from my package.json
  2. delete node_modules
  3. npm install
  4. npm i -D sass
  5. add back in the 0.13.10 of @angular-devkit/build-angular to package.json
  6. npm install again.


@angular-devkit/build-angular has support for dart sass, only you're using the wrong module, try npm install sass as apposed to dart-sass.

You can see the source code that will confirm this here:https://github.com/angular/angular-cli/pull/11791/commits/2c26bce9a5e2472239d755f585df9458f28b9b7f