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, 2022 in Others by Kichu
• 19,040 points
3,375 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
15,475 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,300 points
2,393 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,360 points
3,311 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
2,373 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,360 points
980 views
0 votes
1 answer

How to include bootstrap css and js in reactjs app?

To begin, we will use npm to ...READ MORE

answered Jul 4, 2022 in CSS by Edureka
• 320 points
654 views
0 votes
0 answers

How to use css modules with create-react-app?

In response to a tweet from Dan ...READ MORE

Aug 23, 2022 in CSS by Edureka
• 13,620 points
636 views
0 votes
1 answer

What is Webpack in react?

Webpack is a popular open-source JavaScript module ...READ MORE

answered Dec 22, 2023 in Web Development by Rahul
672 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP