码迷,mamicode.com
首页 > Web开发 > 详细

vue vue-style-loader !css-loader错误

时间:2018-01-10 22:47:26      阅读:465      评论:0      收藏:0      [点我收藏+]

标签:解决   stylus   sel   loader   class   compiler   depend   css   src   

最近在学习vue框架,使用webpack打包vue项目,在执行npm run start的时候 出现如下错误:

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.vu

 

解决思路:

npm intall sass-loader --save;

npm install node-sass --save;

然后运行npm run start就可以 

vue vue-style-loader !css-loader错误

标签:解决   stylus   sel   loader   class   compiler   depend   css   src   

原文地址:https://www.cnblogs.com/hexiaobao/p/8260858.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!