Syntax Error: TypeError: this.getOptions is not a function

@ ./node_modules/vue-style-loader??ref–11-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref–11-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/p
ostcss-loader/src??ref–11-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref–11-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref–1-0!./node_modules/vue-loader/lib??vue-load
er-options!./src/view/registerrenlian.vue?vue&type=style&index=0&id=24d1e571&lang=less&scoped=true& 4:14-473 15:3-20:5 16:22-481
@ ./src/view/registerrenlian.vue?vue&type=style&index=0&id=24d1e571&lang=less&scoped=true&
@ ./src/view/registerrenlian.vue
@ ./src/router/router-static.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.1.105:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

真是醉了,感觉版本问题最整人了,一般像这种都是版本问题,需要降低自己的版本,才能进行运行,解决办法如下:

less-loader高版本配置变了,安装低版本less-loader:npm install less-loader@7.3.0 --save-dev

Logo

前往低代码交流专区

更多推荐