# The pit that vue skips (record the problems encountered, welcome to criticize and correct)

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

        I encountered this error today, and Baidu failed to solve it for four hours. I found someone to look at it later, and found the code in the picture below. Commenting it out will solve the problem. It is recommended to delete it directly. This line of code is automatically generated by the tool. It stuck me for 5 hours.

After deletion, the project starts successfully

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

After vuex opens the namespace, sometimes the following error will be reported:

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


 

After searching for a long time, I didn’t find a solution, so delete the node_modules folder later

Then reinstall the dependencies: cnpm install

Finally re-run: npm run dev

The problem is solved, I don't know what the reason is, if you have a similar problem, you can try


 

Guess you like

Origin blog.csdn.net/D__O__N/article/details/124805016