TypeError: this.getOptions is not a function
Posted R_Javac
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TypeError: this.getOptions is not a function相关的知识,希望对你有一定的参考价值。
报错信息:
Failed to compile. ./node_modules/submodule/components/button/index.vue?vue&type=style&index=0&id=5f075d98&lang=less (./node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!./node_modules/vue-loader-v16/dist/stylePostLoader.js!./node_modules/postcss-loader/src??ref--10-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./node_modules/submodule/components/button/index.vue?vue&type=style&index=0&id=5f075d98&lang=less) Module build failed (from ./node_modules/less-loader/dist/cjs.js): TypeError: this.getOptions is not a function at Object.lessLoader (G:\\Code\\test-submodule\\node_modules\\less-loader\\dist\\index.js:21:24)
截图:
解决方案:
步骤一:卸载当前安装的less-loader npm uninstall less-loader 步骤二:安装七点几的版本 npm i less-loader@7.x
以上是关于TypeError: this.getOptions is not a function的主要内容,如果未能解决你的问题,请参考以下文章
TypeError:“TypeError:函数名称不是 HTMLButtonElement.onclick (/:2:54) 处的函数”
反应本机获取多标记[未处理的承诺拒绝:TypeError:TypeError:未定义不是对象(评估'this.state.markers.map
Django TypeError - TypeError: issubclass() arg 1 必须是一个类
pyspark:TypeError:'float'对象不可迭代
Python 3.8 TypeError: can't concat str to bytes - TypeError: a bytes-like object is required, not 's