Project scenario:
use less development file
Problem Description:
less installation error
Failed to compile with 1 error
Syntax Error: TypeError: this.getOptions is not a function
Cause analysis:
the current version does not match the less and less loader versions, and the less loader version needs to be replaced </ font>
Solution:
Install less version 4.1.1 and less loader version 7.3.0
<style scoped lang="less">
.wrapper{
.header{...}
.content{...}
}
</style>
Read More:
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Module build failed TypeError this.getOptions is not a function at Object.loader
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] webpack Package Error: TypeError: this.getOptions is not a function style-loader
- [Solved] scss Error: TypeError: this.getOptions is not a function
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Input error: this. Getoptions is not a function
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- Vue Use scss Error: this.getOptions is not a function [How to Solve]
- [Vue warn]: Error in v-on handler: “TypeError: Object(…) is not a function“
- [Solved] Echart Error: Typeerror: axis Getaxesonzeroof is not a function
- TypeError: r.indexOf is not a function TypeError: r.indexOf is not a function
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- [Web Browser] “Uncaught TypeError: object is not a function“
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] node-xlsx Write excel Error: TypeError: n.indexOf is not a function
- [Solved] Element Error: Error in render: TypeError: dateStr.match is not a function“
- [Solved] ESLint:TypeError: this.CliEngine is not a constructor
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] Vue2.0 Error: Syntax Error: TypeError: eslint.CLIEngine is not a constructor