Vue报错:*vue-editor-bridge in ./node_modules/cache-loader/dist/cjs.js?……

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";。不需要按照提示按照该插件,解决方法:就是把蓝色这行默认导入的代码去掉就好了。


版权声明:本文为Lyy1991Wdl原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。