报错结果:
项目运行时,突然发生编译错误找不到依赖,按照提示执行npm install --save vue-editor-bridge还是报错
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/Test.vue?vue&type=script&lang=js&
To install it, you can run: npm install --save vue-editor-bridge
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'
原因查找:
找到相似报错,发现vscode自动添加了一行导入,好像是因为在输入function的时候输入到func回车了,vscode就默认把func当作一个组件导入了(大可不必这么智能?)
import func from 'vue-temp/vue-editor-bridge'
解决方案:
直接删除这行代码即可
版权声明:本文为qq_43762239原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。