Vue项目启动的时候报错:

ERROR  Failed to compile with 1 errors                      下午5:11:19

This dependency was not found:

* vue-editor-bridge in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HelloWorld.vue?vue&type=script&lang=js&

To install it, you can run: npm install --save vue-editor-bridge

【出现该问题的原因是】:开发过程中写函数的时候写func着急回车了,vue会默认导入import func from "vue-editor-bridge";。不需要按照提示按照该插件,解决方法:就是把蓝色这行默认导入的代码去掉就好了。

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐