Getting error message Module build failed (from ./node_modules/sass-loader/dist/cjs.js) when running npm serve
This could be result of upgrading sass-loader
from v7.x to v8.x
As stated in release notes, they'v made significant changes to configuration
Check your vue.config.js
- if you find something like this:
module.exports = {
css: {
loaderOptions: {
sass: {
....some options here...
}
}
}
}
change it to:
module.exports = {
css: {
loaderOptions: {
sass: {
sassOptions: {
....some options here...
}
}
}
}
}