Webstorm2017.1.4 new裏找不到vue文件的處理方法 這一篇中說到加的模板是這樣的。css
可是當你新建一個vue項目時,須要從新安裝stylus,不然報錯:html
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
解決步驟:post
當前目錄(項目)下:component
npm install stylus-loader css-loader style-loader --save-devorm
npm run dev 。htm
over。blog