使用Echarts时报 Implementation of registerMap doesn't exists 错误解决办法

发布时间 2023-06-17 19:08:54作者: 水车

最新的echarts在使用时,如果使用按需加载的方式引入依赖。在使用 registerMap 函数时会报错

如果出现这两个错误:

Implementation of registerMap doesn't exists.

或者

Map xxx not exists. The GeoJSON of the map must be provided.

那么大概率是因为 echarts 升级后导致的不兼容问题。 原文内容:echarts5.3非兼容改动