Error reporting background
At present, I am working on a single page project of Vue. I temporarily replaced the system disk because I started a new project, which is actually a very easy reason to think of. However, the error “pointing to a component can not be found” on the console page at that time. In my mind, I first thought that there was a problem with my own partial introduction. After checking many introduction methods, I found that it did not seem to be the problem, Later, the reaction may be that the original things were moved because the disk was changed, and the dependencies are not in the current project directory. Although the version number of eckards is registered in package.json, the things are not detected by moudule, so naturally they can’t be retrieved.
Solution:
There is no problem running my code in the original environment, so the solution is very simple. Just download the required ecarts package and run the following command
// echarts download code
cnpm install [email protected] --save
//the reaseon for limiting version number:default 5 dont conatin Map components
Of course, because I changed the disk, I didn’t even have NPM, not to mention cnpm, not even inode… Of course, if you encounter these problems, just download the corresponding version you need
after downloading the dependencies, you can first go to package.json or the dependency file corresponding to your own project to check whether it is registered correctly, and then check whether the module has a corresponding package to develop a good development habit
result
After NPM running again, the IDE screen is displayed normally and the web page is displayed normally, OK.
(the picture will not be displayed here, otherwise the information security will be leaked.)
Read More:
- Vue Project Error: Expected indentation of 2 spaces but found 4,Newline required at end of file but not found
- [Solved] Vue Import swiper.css Error: Module not found…
- Vue Start Error: This relative module was not found:
- Vue Dynamic Display Picture Error 404: Not Found [How to Solve]
- [Solved] Vue Project Error: This relative module was not found
- Vue Startup Error: 98% after emitting CopyPlugin This dependency was not found:
- [Solved] Vue item packaging error: Failed to load resource: the server responded with a status of 404 (Not Found)
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- [Solved] error when starting dev server:Error: The following dependencies are imported but could not be reso
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- Vue-echarts error: was not found in vue-demi [How to Solve]
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- [Solved] Vue Less error: Webpack project report expected indentation of 0 spaces but found 2
- [Solved] Vue Project startup error: no eslint configuration found
- [Solved] VUE eslint Error: Expected linebreaks to be ‘LF‘ but found ‘CRLF
- Vue Error: component has been registered but not used [Two Methods to Solve]
- [Solved] Vue Error: Module build failed: Error: No PostCSS Config found in
- [Solved] Vue uses webpack to package error: Createapp is not a function
- [Solved] Vue item error: Regeneratorruntime is not defined