Reproduction steps:
1. The project was created using Vue cli
2. Install less4 x, less-loader10.X development dependency
3. After using lang = “less” in the single file Vue component, the compilation error is found, syntax error: typeerror: this getOptions is not a function
Reason: the version of less loader is too high. Uninstall and reinstall
// uninstall less
npm uninstall less-loader
npm uninstall less
// re-install less3.5.0、less-loader7.3.0
npm i -D [email protected]
npm i -D [email protected]
Read More:
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Less Install Error: TypeError: this.getOptions is not a function
- Vue Use scss Error: this.getOptions is not a function [How to Solve]
- [Solved] Module build failed TypeError this.getOptions is not a function at Object.loader
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- [Solved] webpack Package Error: TypeError: this.getOptions is not a function style-loader
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function
- [Solved] scss Error: TypeError: this.getOptions is not a function
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] Vue3.2 Error: Object.fromEntries is not a function
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Vue warn]: Error in v-on handler: “TypeError: Object(…) is not a function“
- [Solved] Echart Error: Typeerror: axis Getaxesonzeroof is not a function
- [Solved] node-xlsx Write excel Error: TypeError: n.indexOf is not a function
- [Solved] mqtt.js Error: n.createConnection is not a function
- [Web Browser] “Uncaught TypeError: object is not a function“
- TypeError: r.indexOf is not a function TypeError: r.indexOf is not a function
- [Solved] Vue uses webpack to package error: Createapp is not a function
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function