Syntax Error: TypeError: this.getOptions is not a function
Scenario:
Error reporting when running Vue project
Error message:
Syntax Error: TypeError: this.getOptions is not a function
@ ./node_modules/vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/article/article.vue?vue&type=style&index=0&id=53e7acee&lang=scss&scoped=true& 4:14-480 15:3-20:5 16:22-488
@ ./src/pages/article/article.vue?vue&type=style&index=0&id=53e7acee&lang=scss&scoped=true&
@ ./src/pages/article/article.vue
@ ./src/router/config.js
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.3.101:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js babel-polyfill whatwg-fetch ./src/main.js
reason:
The probability is that the installed version of SCSS loader is too high
Solution:
uninstall the original too high version and install the lower version
npm uninstall --save sass-loader // uninstall
npm i -D [email protected] // install
npm uninstall --save node-sass //uninstall
npm i [email protected] // install
Read More:
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function
- [Solved] scss Error: TypeError: this.getOptions is not a function
- [Solved] Less Install Error: TypeError: this.getOptions is not a function
- [Solved] Module build failed TypeError this.getOptions is not a function at Object.loader
- [Solved] webpack Package Error: TypeError: this.getOptions is not a function style-loader
- Vue Use scss Error: this.getOptions is not a function [How to Solve]
- [Solved] Input error: this. Getoptions is not a function
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- [Solved] Vue Error: Syntax Error: TypeError: Cannot set properties of undefined (setting ‘XXX’)
- [Solved] node-xlsx Write excel Error: TypeError: n.indexOf is not a function
- [Solved] Echart Error: Typeerror: axis Getaxesonzeroof is not a function
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] Syntax Error: Error: No ESLint configuration found & TypeError: eslint.CLIEngine is not a constructor
- [Vue warn]: Error in v-on handler: “TypeError: Object(…) is not a function“
- [Web Browser] “Uncaught TypeError: object is not a function“
- TypeError: r.indexOf is not a function TypeError: r.indexOf is not a function
- [Solved] Vue2.0 Error: Syntax Error: TypeError: eslint.CLIEngine is not a constructor
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined