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

解决方法和原因如下

当我在vue页面使用scss

使用到scss时候就会报错

运行scss的依赖都安装好了

npm install sass-loader --save

npm install node-sass 

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

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

你可能感兴趣的:(Module build failed: TypeError: this.getResolve is not a function at Object.loader)