1. 程式人生 > >VUE 專案dependency was not found: * !!vue-style-loader!css-loader? 解決方案

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

用npm run dev 執行vue專案時,出現以下錯誤:

ERROR  Failed to compile with 1 errors                                                                                                                                                                        11:17:27
This dependency was not found:

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-331f341c","scoped":true,"hasInlineConfig":false}!less-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Indedx.vue in ./src/ivew/Index.vue

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

解決方法,看錯誤中列出了哪幾個模組,都給裝上:

npm install stylus-loader css-loader style-loader less-loader --save-dev