This dependency was not found:

* vue-editor-bridge in ./node_modules/cache-loader/dist/cjs.js??ref–13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref–1-0!./node_modules/vue-loader-v16/dist??ref–1-1!./src/page/fileList.vue?vue&type=script&lang=js

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

先说解决方法:检查你的导入包部分的语句,看看是不是多出了一个包

<script>
import { reactive, ref } from "@vue/reactivity";
import axios from "../utils/axios.js";
import func from 'vue-editor-bridge';
// 就是 func 这个模块和 vue-editor-bridge 这个包
// ...
</script>

把它删掉就好了

这个错误的原因是你没有把 function 打完,只打成了 func ,然后 vs code 某个插件自动帮你导入了 func 组件

比如你打着打着 func 然后手抖了,突然打了一个回车,这个包可能就被自动加入进来,我写2、300 行代码的组件的时候这个 Bug 还是挺难找的

Logo

前往低代码交流专区

更多推荐