6

My Nodejs version is v16.16.0 and npm version is 8.11.0.

enter image description here

and errors keep coming saying

enter image description here

Is there any way to upgrade sass-loader? (Also, when npm run serve is run this error comes up

Syntax Error: Error: Node Sass version 7.0.1 is incompatible with ^4.0.0.)

user529674
  • 89
  • 1
  • 5

2 Answers2

6

Dont use node-sass

node-sass has been depricated. So you will have to use the new version, which is sass

You can do this to fix all compatibility errors related to node-sass

npm uninstall node-sass
npm install sass
Abraham
  • 12,140
  • 4
  • 56
  • 92
0

In your package.json file change the dependency from "node-saas": "^7.0.1" to "saas":"^1.22.10" and then install this dependency.

Read more here https://www.npmjs.com/package/sass-loader

KRM
  • 1,185
  • 2
  • 13
  • 28