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]
Read More:
- [Solved] scss Error: TypeError: this.getOptions is not a function
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- [Solved] Input error: this. Getoptions is not a function
- [Solved] Module build failed TypeError this.getOptions is not a function at Object.loader
- [Solved] Less Install Error: TypeError: this.getOptions is not a function
- [Solved] webpack Package Error: TypeError: this.getOptions is not a function style-loader
- How to Solve Vue cli configuration SCSS global variable error
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] Vue3.2 Error: Object.fromEntries is not a function
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] Vue uses webpack to package error: Createapp is not a function
- Vue installs sass loader directly, and node sass reports an error
- [Solved] Vue Error: Module build failed Error Node Sass version 6.0.1 is incompatible with ^4.0.0.
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- [Solved] Node sass version 7.0.0 is incompatible with ^ 4.0.0 | ^ 5.0.0 | ^ 6.0.0
- Vue3.0 Use el-dialog visible Error: ‘.sync‘ modifier on ‘v-bind‘ directive is deprecated. Use ‘v-model:pro