[Vuejs]-Module build failed @content($material-light) vuetify 2.3.10

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:

  1. upgrade @rails/webpacker to newer version which is using sass
  2. configure sass-loader to use sass as documented here

Leave a comment