0👍
It seems one of your other dependencies has a dependency on node-sass
. It’s probably @rails/webpacker
as you are using very old version 3.2.0 (current is 5.2.1) and they switched to sass
(dart-sass
) recently
Result is you have both packages installed – sass
and node-sass
From the docs of sass-loader
(which is used by Webpack when building Vue app) it seems that when both packages are installed, they prefer sass
over node-sass
but at the same time warn not to install both. Seems strange to me. Also the error suggests that sass-loader
is in your case preferring node-sass
.
You have 2 options:
- upgrade
@rails/webpacker
to newer version which is usingsass
- configure
sass-loader
to usesass
as documented here
Source:stackexchange.com