ecomfe / echarts-wordcloud

Word Cloud extension based on Apache ECharts and wordcloud2.js
1.66k stars 708 forks source link

echarts5.4.2 版本 和 echarts-wordcloud2.1.0 版本 兼容报错了!!! #161

Closed GreatHonour closed 1 year ago

GreatHonour commented 1 year ago

image image

WordCloudView.js:14 Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'ondraw') at ExtendedClass.render (WordCloudView.js:14:1) at Task.progress (Chart.js:233:1) at Task._doProgress (task.js:187:1) at Task.perform (task.js:153:1) at eval (echarts.js:1824:1) at GlobalModel.eval (Global.js:654:1) at Array.forEach () at each (util.js:205:1) at GlobalModel.eachSeries (Global.js:651:1) at renderSeries (echarts.js:1812:1)

GreatHonour commented 1 year ago

按需引入问题

Mister-Hope commented 1 year ago

Hi bro, could you share some detailed explanation? I encountered the same problem. But I think I am importing the whole package through import(/* webpackChunkName: "echarts" */ "echarts").

I have the exact same error stack as yours:

image
Paper-Dragon commented 1 year ago

Is there any new process?

Jevin0 commented 11 months ago

Make sure that the echarts-wordclound warehouse is successfully introduced before executing the echarts.init method.