# vue跳过的坑(记录遇到过的问题,欢迎批评指正)

1.This dependency was not found:* node_modules/[email protected]@element-ui/lib/locale/lang/en

Failed to compile with 1 error                                     下午6:07:25

This dependency was not found:

* node_modules/[email protected]@element-ui/lib/locale/lang/en in ./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--12-0!./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--0-0!./node_modules/[email protected]@vue-loader/lib??vue-loader-options!./src/views/dashboard/Sale/index.vue?vue&type=script&lang=js&

To install it, you can run: npm install --save node_modules/[email protected]@element-ui/lib/locale/lang/en

        今天遇到这个错误百度了四个小时没能解决。后面找人看了一下,找到了下图这句代码。把他注释掉就能解决问题了。建议直接删除,这行代码是工具自动生成的,卡了我5个小时,我直接张口就是国粹:)

删除后项目启动成功

2.An error occurred in hook getInspectorState registered by plugin org.vuejs.vue2-internal

vuex开启了命名空间后有时候会报以下错误:

 An error occurred in hook getInspectorState registered by plugin org.vuejs.vue2-internal


 

找了好久没找到解决方法,后面把node_modules文件夹删除

然后重新安装依赖:cnpm install

最后重新运行:npm run dev

问题就解决了,不知道是啥原因,有类似问题的可以试试


 

猜你喜欢

转载自blog.csdn.net/D__O__N/article/details/124805016