首页 > Web开发 > 详细

This dependency was not found: * !!vue-style-loader!css-loader?……解决方案

时间:2017-07-17 22:46:15      阅读:3808      评论:0      收藏:0      [点我收藏+]

技术分享

Webstorm2017.1.4 new里找不到vue文件的处理方法 这一篇中说到加的模板是这样的。

但是当你新建一个vue项目时,需要重新安装stylus,否则报错:

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 stylus-loader css-loader style-loader --save-dev

 npm run dev 。

over。

 

This dependency was not found: * !!vue-style-loader!css-loader?……解决方案

原文:http://www.cnblogs.com/Amy-is-a-fish-yeah/p/7197873.html

(2)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!