vueblocks / ve-charts

📈 ECharts 4.x for Vue.js 2.x. | 📈 ECharts 5.x for Vue.js 3.x in next version.
https://vueblocks.github.io/ve-charts
213 stars 44 forks source link

import error #138

Closed renvip closed 3 years ago

renvip commented 3 years ago

只要导入,vue页面就空白,浏览器控制台报以下错误,请问如何解决? Uncaught TypeError: Cannot read property 'graphic' of undefined at Module.fb15 (ve-charts.umd.min.js?8709:8) at r (ve-charts.umd.min.js?8709:1) at 068a (ve-charts.umd.min.js?8709:1) at eval (ve-charts.umd.min.js?8709:1) at eval (ve-charts.umd.min.js?8709:1) at eval (ve-charts.umd.min.js?8709:1) at Object../node_modules/_ve-charts@0.9.5@ve-charts/lib/ve-charts.umd.min.js (chunk-vendors.js:6361) at __webpack_require__ (app.js:849) at fn (app.js:151) at eval (main.js:12)

xiaoluoboding commented 3 years ago

@renvip 可能你的 echarts 版本是最新的 5.x 以上。注意下 ve-charts 目前还不支持 echarts 5.x 版本。可以使用 4.9.x

renvip commented 3 years ago

@xiaoluoboding 感谢!已解决!