Error: TypeError: this.getOptions is not a function
Analysis of problems:
In fact, the version of less loader is too high and incompatible with getoptions function methods, so it is necessary to downgrade less loader
Problem-solving:
Uninstall the original version of less loader through the NPM uninstall less loader command,
Then install less through NPM- [email protected] Command to download the downgraded version of less loader. This problem can be solved
Similar Posts:
- Module build failed: TypeError: this.getResolve is not a function at Object.loader node-sass Install Error
- Use sass and less in Vue and solve the problem of error reporting (this. Getoptions is not a function)
- Syntax Error: TypeError: this.getOptions is not a function [Solved]
- Solutions to the problem that image webpack loader cannot be installed or the installation is stuck
- [Solved] Vue Install Less Error: npm ERR! code ERESOLVE
- [Solved] Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0.
- NPM run dev Error: this.getOptions is not a funtion
- [Solved] Vue Upgrade Error: TypeError:Cannot read property ‘parseComponent’ of undefined
- [Solved] Error: Rule can only have one resource source (provided resource and test + include + exclude) in {
- Vue configures the compression-webpack-plugin to package and compress JS and CSS Error