vue中安装sass后页面中引用scss报错“Module build failed: TypeError: this.getResolve is not a function at Object.loader”

Module build failed: TypeError: this.getResolve is not a function at Object.loader

解决方法和原因如下

当我在vue页面使用scss

 使用到scss时候就会报错

 运行scss的依赖都安装好了

 原因其实很简单sass-loader版本有问题 换成7.0.0版本就好

 在webpack.json中重新改一下版本,然后重新npm i 一下就可以

————————————

来源:https://blog.csdn.net/qq_43504375/article/details/100586410

猜你喜欢

转载自www.cnblogs.com/gwkzb/p/12524562.html