Node.js Sass version 7.0.0 is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0

If you want to use SCSS and Sass in your React app, try to do as below and your files will be correctly compiled:

  1. First remove node-sass:
yarn remove node-sass
# if you use npm
npm uninstall node-sass
  1. Then install sass instead of node-sass:
yarn add -D sass
# if you use npm
npm i -D sass

Leave a Comment