ecomfe / echarts-wordcloud

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

echats-wordcloud2.0.0和echarts5.0.1,项目build之后,在线上环境会报错 #115

Closed sgl1702 closed 3 years ago

sgl1702 commented 3 years ago

chunk-libs.9a4ef779.js:49 TypeError: r is not a function

getInitialData: function(t, n) { var e = r(["value"], t.data) , o = new i.List(e,this); return o.initData(t.data), o },

getInitialData: function (option, ecModel) { var dimensions = externalecharts.helper.createDimensions(option.data, { coordDimensions: ['value'] }); var list = new externalecharts.List(dimensions, this); list.initData(option.data); return list; },

问题点:externalecharts.helper.createDimensions不是个方法,external_echarts_去调用echarts中的helper.createDimensions不成功

sgl1702 commented 3 years ago

npm 的问题,切换到cnpm 就可以了