Home > database >  Error: Node Sass version 8.0.0 is incompatible with ^4.0.0
Error: Node Sass version 8.0.0 is incompatible with ^4.0.0

Time:12-06

When I start a React app with npm start, I got this error.How I fixed this error?

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

Here is the screenshot of error

CodePudding user response:

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