Answer the question
In order to leave comments, you need to log in
How to properly include scss in webpack?
There was a need to put Sass in a React project and here's the problem:
when the project starts, it gives an error
Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version.. With this I have everything installed:
"node-sass": "^4.8.3", "sass-loader": "^7.0.1",. I wrote the following in the config:
{. What could be wrong, I do not understand at all. I really hope for you!
test: /\.scss$/,
include: paths.appSrc,
loaders: ['style-loader', 'css-loader', 'sass-loader']
}
Answer the question
In order to leave comments, you need to log in
Run cmd as admin and globally install this package, which will do everything for you - yarn global add windows-build-tools and that's it
Check nodejs version.
node -v
или
node --version
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question