During the reacttime of project development, the emergence of this error, TypeError: this.getOptions is not a functionas follows:
2. Problem analysis and solution:
Analysis of the problem: This is actually less-loaderthe version is too high, it is not compatible getOptionsfunction method, so it is necessary to less-loaderdowngrade processing
To solve the problem: The npm uninstall less-loadercommand to uninstall the original version less-loader, and then through the npm install [email protected]command to download the downgrade version less-loader, this problem can be solved