How to connect the scss in webpack?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
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 | 20 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
0 like 0 dislike
Check the version of nodejs.

node-v or node --version

should be more than 4

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,187 answers
40,796 users