Error node-sass version 5 0 0 is incompatible with 4 0 0

0 votes

Using the command: npx create-react-app I created a blank react project on npm v7.0.7 and Node.js v15.0.1. But when I tried to import a blank .scss file to the App component I am getting this error:

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.

File App.js

import './App.scss'


function App() {

  return (

    <div className="App">

      App

    </div>

  );

}


export default App;

File package.json

{

  "name": "react-17-node-sass-5",

  "version": "0.1.0",

  "private": true,

  "dependencies": {

    "@testing-library/jest-dom": "^5.11.5",

    "@testing-library/react": "^11.1.0",

    "@testing-library/user-event": "^12.1.10",

    "node-sass": "^5.0.0",

    "react": "^17.0.1",

    "react-dom": "^17.0.1",

    "react-scripts": "4.0.0",

    "web-vitals": "^0.2.4"

  },

 ...


  }

}

Can someone help me with this issue?

May 19 in Others by Kichu
• 19,040 points
136 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Others

0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
12,061 views
+1 vote
1 answer

what is the difference between error and stderr in Node.js?

Error is an object created by Node.js to handle ...READ MORE

answered Jul 4, 2019 in Others by sunshine
• 1,280 points
1,079 views
0 votes
1 answer

Why is MongoDB associated with Node.js?

Node.js is an open source server environment ...READ MORE

answered Jul 19, 2019 in Others by ArchanaNagur
• 2,340 points
1,135 views
0 votes
1 answer

How to communicate gRPC example working with Node.js?

hi.. you can read below link, it ...READ MORE

answered Dec 2, 2019 in Others by Narendra Reddy Dalli
1,463 views
+1 vote
1 answer

What is Node.js? I want a clear understanding about it.

Node.js is a runtime environment which allows ...READ MORE

answered Jun 17, 2019 in Others by ArchanaNagur
• 2,340 points
273 views
0 votes
1 answer

How can I remove a port from url for node app using nginx

If you run your node server on ...READ MORE

answered Apr 10, 2018 in DevOps on Cloud by ajs3033
• 7,280 points
2,681 views
0 votes
3 answers

ReactJS vs Angular Comparison: Which is better?

One picture, many facts How can you compare ...READ MORE

answered Aug 11, 2018 in Events & Trending Topics by slayer
• 29,310 points
423 views
+2 votes
4 answers
0 votes
1 answer

Webpack destroying code in production.

The problem is that Uglify mangles too ...READ MORE

answered Aug 22, 2018 in Blockchain by slayer
• 29,310 points
206 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP