VUE Module build failed: TypeError: this.getOptions is not a function at Object.loader 解决办法

背景:在VUE中安装了 npm install node-sass sass-loader --save-dev,然后启动就报错了,看提示是因为依赖的问题

查了一下 node-sass sass-loader 是会有冲突的

Module build failed: TypeError: this.getOptions is not a function
    at Object.loader (D:\testwork\Testgadget\frontend\node_modules\sass-loader\dist\index.js:25:24)

npm uninstall sass-loader

npm install [email protected]

npm uninstall node-sass

npm install [email protected]

npm run serve

这样就可以正常启动了

你可能感兴趣的:(vue,vue.js,javascript,前端)