vue项目使用echarts按需引入实现地图动态显示效果时,报错:TypeError: Cannot read property 'dataToPoint' of undefined

vue项目使用echarts按需引入实现地图动态显示效果时,报错:TypeError: Cannot read property 'dataToPoint' of undefined

借鉴了该大神的文章:https://blog.csdn.net/mazeyqian/article/details/78700605 在我的项目里面未引入geo,引入geo后报错消失。

引入方法:require('echarts/lib/component/geo')