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

可是當你新建一個vue項目時,須要從新安裝stylus,不然報錯:css

This dependency was not found:vue

* !!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.vuenode

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

 

解決步驟:component

 當前目錄(項目)下:it

  npm install stylus-loader css-loader style-loader --save-devmodule

 npm run dev 。vue-loader

over。stylus

相關文章
相關標籤/搜索