How to connect the scss in webpack?

0 like 0 dislike
9 views
There was a need to put the Sass in the project to React 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.
. I have everything installed:
"node-sass": "^4.8.3", "sass-loader": "^7.0.1",
. In the config ordered the following:
{
test: /\\.scss$/,
include: paths.appSrc,
loaders: ['style-loader', 'css-loader', 'sass-loader']
}
. What could be the error do not understand. Look forward to you!
by | 9 views

2 Answers

0 like 0 dislike
Run cmd from admin and globally install this package that will do everything for you - yarn global add windows-build-tools and all
by
0 like 0 dislike
Check the version of nodejs.

node-v or node --version

should be more than 4
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
33,963 users