当前位置:网站首页>Module build failed: TypeError: this. getOptions is not a function at Object. stylusLoader

Module build failed: TypeError: this. getOptions is not a function at Object. stylusLoader

2022-06-13 08:59:00 xiongpursuit88

error in ./src/pages/home/components/Header.vue

Module build failed: TypeError: this.getOptions is not a function
at Object.stylusLoader (/Users/rockygao/Data/wwwroot/travel/node_modules/[email protected]@stylus-loader/dist/index.js:17:24)

@ ./node_modules/[email protected]@vue-style-loader!./node_modules/[email protected]@css-loader?{“sourceMap”:true}!./node_modules/[email protected]@vue-loader/lib/style-compiler?{“vue”:true,“id”:“data-v-5558831a”,“scoped”:true,“hasInlineConfig”:false}!./node_modules/[email protected]@stylus-loader/dist/cjs.js?{“sourceMap”:true}!./node_modules/[email protected]@vue-loader/lib/selector.js?type=styles&index=0!./src/pages/home/components/Header.vue 4:14-476 13:3-17:5 14:22-484
@ ./src/pages/home/components/Header.vue
@ ./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@vue-loader/lib/selector.js?type=script&index=0!./src/pages/home/Home.vue
@ ./src/pages/home/Home.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi ./node_modules/[email protected]@webpack-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

reason :stylus-loader The installed version is too high
Solution :
1.cnpm uninstall stylus-loader
2.cnpm i [email protected] -S

原网站

版权声明
本文为[xiongpursuit88]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270535255024.html