Tag Archives: this.getOptions is not a function

Vue Use scss Error: this.getOptions is not a function [How to Solve]

Background: an error is reported when installing sass for NPM

Installing sass through NPM

npm install node-sass
npm intall sass-loader

The above command installs the latest version. The reason for the error is that the latest version causes getoptions() incompatibility. The solution is to uninstall sass loader node sass and install the lower version. The commands are as follows

npm uninstall sass-loader //uninstall
npm install [email protected]  //install 8.0
npm uninstall --save node-sass
npm install [email protected] 

[Solved] Vue Install less Error: this.getOptions is not a function

Vue installs less. This.getoptions is not a function
the reason is that the highest version is installed by default during installation (NPM install less loader)

solution: uninstall the previous version first and reinstall the lower version

npm uninstall less-loader

npm install less- [email protected]