Tag Archives: TypeError: this.getOptions is not a function

[Solved] Project compile error After Install less-loader: Typeerror: this getOptions is not a function

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