[英]VueJs Sass-loader TypeError: this.getOptions is not a function
Hello guys I have installed Sass-loader in my vueJs project but I get this error大家好,我已经在我的 vueJs 项目中安装了 Sass-loader 但我收到了这个错误
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
at Object.loader (/home/etali/Programmation/Web/VueJs/twotter-vueJs/node_modules/sass-loader/dist/index.js:25:24)
When I wanted to use scss in my components.当我想在我的组件中使用 scss 时。
I'm using @vue/cli 4.5.13 the version of sass-loader is 12.1.0我正在使用@vue/cli 4.5.13 sass-loader 的版本是 12.1.0
thank you谢谢你
sass-loader
starting with v.11 require webpack 5 .从 v.11 开始的
sass-loader
需要 webpack 5 。 The best for now is just to use version ^10现在最好的就是使用版本^10
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.