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:
npm uninstall node-sass
npm install sass
Or, if using Yarn
yarn remove node-sass
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