Was not found in Vue Demi
version problem. Vue-echarts6.0.0 is vue3. When it is introduced into vue2, an alarm will appear
you can go back to version 4.0.2
npm install [email protected] -S
Vue-echarts4.0.2 corresponds to echarts4, so echats also returns the version
npm install [email protected] -S
Prompt personal version record
"dependencies": {
"core-js": "^3.6.5",
"echarts": "^4.9.0",
"vue": "^2.6.11",
"vue-echarts": "^4.0.2"
},
Introduce in main.js
import ECharts from 'vue-echarts'
// import * as echarts from 'echarts' //Global introduction
// Vue.prototype.$echats = echarts;
import 'echarts/lib/chart/line' // On-demand introduction
Vue.component('chart', ECharts)
Read More:
- [Solved] echarts Draw Errror: echarts-d9fd185e.js:31447 Uncaught (in promise) Error: Initialize failed: invalid dom.
- Echarts Partially introduced error: TypeError: Cannot read property ‘findAxisModel’ of undefined
- [Solved] This dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/_@babel_runtim
- [Solved] Echarts Error: Uncaught (in promise) Error: Initialize failed: invalid dom.
- Vue Startup Error: 98% after emitting CopyPlugin This dependency was not found:
- Vue Start Error: This relative module was not found:
- [Solved] Vue Project Error: This relative module was not found
- [Solved] Echarts Error: TypeError: Cannot read properties of null (reading getAttribute )
- [Solved] Uncaught (in promise) DOMException: Failed to load because no supported source was found.
- [Solved] Vue echarts Error: Initialize failed: invalid dom.
- [Solved] echarts Error: Error in callback for watcher “chartSource“: “Error: Initialize failed: invalid dom.“
- [Solved] Vue E-Charts Error: These dependencies were not found:
- [Solved] Echarts Error: Cannot read property ‘init‘ of undefined
- Module not found: Error: Can‘t resolve ‘core-js/modules/es.promise.js‘ in
- Vue Project Error: Expected indentation of 2 spaces but found 4,Newline required at end of file but not found
- [Solved] ERROR in ./src/main.ts Module not found: Error: Can‘t resolve ‘xxx‘
- Echarts Map Error: Error: Invalid geoJson format Cannot read property ‘length‘ of undefined
- [Solved] webpack Package Error: ERROR in multi ./src/main.js ./dist/bundle.js Module not found: Error: Can‘t resolv
- [Solved] Hydration failed because the initial UI does not match what was rendered on the server
- [Solved] Vue Project Error: “TypeError: Cannot read properties of undefined (reading ‘init‘)“