vue 报错

 ERROR  Failed to compile with 1 errors                                                                                                                                                                                     16:28:24
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-357b5464","scoped":true,"hasInlineConfig":false}!stylus-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Ebook.vue in ./src/components/Ebook.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-357b5464","scoped":true,"hasInlineConfig":false}!stylus-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Ebook.vue

安装提示安装了依赖,npm i -D vue-style-loader css-loader 后,还是不行,找了好大一会,才发现原来是vue 组件的 style 标签的 lang 属性不相符造成的,更正后,正常启动。记录下来。

你可能感兴趣的:(VUE)