加上<style lang="stylus"> </style> 运行项目就会报错
来源:6-4 Vue项目预热 - 单文件组件与Vue中的路由
慕村7601342
2021-12-24
加上
Module build failed: TypeError: this.getOptions is not a function
at Object.stylusLoader (C:\Users\Administrator\node_modules\stylus-loader\dist\index.js:17:24)
@ ./node_modules/vue-style-loader!./node_modules/css-loader?{“sourceMap”:true}!./node_modules/vue-loader/lib/style-compiler?{“vue”:true,“id”:“data-v-0c57a6db”,“scoped”:false,“hasInlineConfig”:false}!C:/Users/Administrator/node_modules/stylus-loader/dist/cjs.js?{“sourceMap”:true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/pages/home/Home.vue 4:14-390 13:3-17:5 14:22-398
@ ./src/pages/home/Home.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
1回答
-
Dell
2021-12-26
版本问题,同学下载下我的代码,把stylus 和stylus-loader 的版本改成跟我一致就可以了
00
相似问题
回答 5
回答 1