Today, I want to realize the lazy loading of pictures. After registering components according to the tutorial, the console will report an error as above
The version in package.json is found to be the default downloaded version 3.0.0-rc.2
Solution:
Try to modify the version to 1.3.3
"dependencies": {
"axios": "^0.27.2",
"core-js": "^3.8.3",
"element-ui": "^2.15.9",
"vue-lazyload": "^1.3.3",
"vue": "^2.6.14",
"vue-router": "^3.1.3"
},
Run, no more errors!
Read More:
- [Solved] Vant quoted lazload error: Failed to Resolve directive: lazy
- [Solved] Vue Error: Failed to resolve directive: scroll-to
- [Vue warn]: Failed to resolve directive: XXX [How to Solve]
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- [Solved] Vue3 Error: Failed to resolve component:xxx
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- [Solved] vue Project Error: react lazy eslint error Parsing error: Unexpected token import
- Vue Import element-plus Error: Failed to resolve import “element-pluslibtheme-chalkindex.css“ from “src
- Vue3.0 Use el-dialog visible Error: ‘.sync‘ modifier on ‘v-bind‘ directive is deprecated. Use ‘v-model:pro
- Failed to resolve async component default: ChunkLoadError: Loading chunk 7 failed
- How to Solve @Vue/cli3.X Using less Error
- Vue2.0: How to Use vue3 api to encapsulate Axios
- Vue3.X Attribute Inheritance error [How to Solve]
- [Solved] vueCli 4.x Upgrade to 5.x Error: Progress Plugin Invalid Options
- How to Deal With the Error: ‘v-slot’ directive doesn’t support any modifier
- [Solved] react-quill failed to install error: Could not resolve dependency
- How to Solve “Vue is not defined” Error
- [Solved] Failed to Create Vue Scaffold Error: spawn yarn ENOENT
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- ArcGIS API for JavaScript version 4. X updated and the project startup error: Module parse failed: Unexpected token(… …