最近,使用echarts做疫情防控地图,引入echarts后,报错:
vue中引入echarts 报错“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
查询资料后,了解到是版本的问题
详情参考博客:https://blog.csdn.net/weixin_44874618/article/details/110647652
在Google 查出来一个问题说可能是版本问题,进行校验后发现确实我的5.0,现更改为4.9.0
具体步骤:
1、卸载echarts
npm uninstall echarts //卸载
2、重装
cnpm install [email protected]
npm fund