This dependency was not found:

* !!vue-style-loader!css-loader?{"minimize":false,"sourceMap":false}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-1d57e5ea","scoped":false,"hasInlineConfig":false}!stylus-loader?{"sourceMap":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./a.vue in ./src/components/a.vue

To install it, you can run: npm install --save !!vue-style-loader!css-loader?{"minimize":false,"sourceMap":false}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-1d57e5ea","scoped":false,"hasInlineConfig":false}!stylus-loader?{"sourceMap":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./a.vue

这种情况是因为依赖没有找到,需要npm install椅子啊这些依赖,所以执行以下命令应该就可以


$npm install stylus stylus-loader css-loader style-loader –save-dev

执行之后重新npm run dev

对于package.json中devDependencies  和 dependencies 的区别可以去看一下另一篇博文

希望能够解决你们的问题

Logo

前往低代码交流专区

更多推荐