本文介绍了类型错误:this.getOptions 不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在安装 Bootstrap 时遇到了一个奇怪的错误.错误如下.我尝试卸载less-loader并安装[email protected],因为我在网上看到它,但它没有任何作用.我不确定在这一步要做什么.
I am facing a weird error when I installed Bootstrap. The error is below. I tried uninstalling less-loader and installing [email protected], because I saw it online, but it did nothing. I am unsure what to do at this step.
语法错误:TypeError:this.getOptions 不是函数
@ ./node_modules/vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/vue-loader-v16/dist/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss 4:14-419 14:3-18:5 15:22-427
@ ./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.1.182:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
推荐答案
类似于@KostDM 所说的,就我而言,[email protected]
似乎不适用于 [email protected].
Similar to what @KostDM said, in my case it seems like [email protected]
doesn't work with [email protected]
.
我安装了 [email protected]
,它再次发挥了作用.
I installed [email protected]
and it worked like a charm again.
在你的 package.json
中:
"sass-loader": "^10",
这篇关于类型错误:this.getOptions 不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!