To use less, you need to download less and less loader
npm install less less-loader --save-dev
In this way, an error will be reported after running. The reason is that the loader version is too high. Just reduce the version
Uninstall less loader
NPM uninstall less loader
install less loader
NPM install less- [email protected] --save-dev
Read More:
- [Solved] Input error: this. Getoptions is not a function
- [Solved] Vue Project Error: 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
- Vue Use scss Error: this.getOptions is not a function [How to Solve]
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- Vue installs sass loader directly, and node sass reports an error
- Error: Rule can only have one resource source (provided resource and test + include + exclude)
- Vue Install less Error: While resolving: [email protected]
- Vue project Run Error: Syntax Error: Error: Cannot find module ‘less‘
- Vue Package Image Error: Syntax Error: Error: ‘**\node_modules\pngquant-bin\vendor\pngquant.exe‘
- [Solved] Vue Error: Module build failed Error Node Sass version 6.0.1 is incompatible with ^4.0.0.
- [Solved] Less Install Error: TypeError: this.getOptions is not a function
- [webpack-cli] Error: Cannot find module ‘vue/compiler-sfc‘
- React project is packaged and set as required Error [How to Solve]
- [Solved] Node sass version 7.0.0 is incompatible with ^ 4.0.0 | ^ 5.0.0 | ^ 6.0.0
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- [Solved] scss Error: TypeError: this.getOptions is not a function
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution