Solved — Node Sass version 7.0.0 is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0

Error occurs when using node 16.13.1 and created a react app.

How to fix:

If you want to use scss/sass in your react app try to do this:

Step 1: First remove node-sass

yarn remove node-sass

if you use npm

npm uninstall node-sass

Step 2: Then install sass instead of node-sass

yarn add -D sass

or

npm i -D sass

Finally your scss/sass files will be correctly compiled !

Hope this helped 🙏

Support me by becoming a Medium member 🥳, and get access to unique programming articles that will enhance you skills.

--

--