Skip to content
Home » Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.

Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.

To solve Error: Node Sass version 5.0.0 is incompatible with ^4.0.0. error follow below methods.

ERROR LOG

Failed to compile.

./src/App.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/s
ass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/App.scss)
Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.

How to solve Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.

Refer the given methods to solve the issue.

Method 1:

  1. npm uninstall node-sass
  2. npm install sass

Or, if using Yarn

  1. yarn remove node-sass
  2. yarn add sass

Method 2 :

Uninstall node-sass:

npm uninstall node-sass

Use sass by:

npm install -g sass
npm install --save-dev sass

Hope the above solution works.

Also read :

Python SyntaxError: invalid syntax to repo init in the AOSP code
Getting a warning when installing homebrew on macOS Big Sur