解决“export ‘default‘ (imported as ‘echarts‘) was not found in ‘ec
今天我在vue中引入echarts时报错“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘ ”,查阅相关资料后,echarts for react不支持echarts版本5.0.0。
1、检查echarts版本号
npm ls echarts
或则在page.json中查看

版本为5.4.6,于是我们们重装4.9.0
2、重新安装
卸载:npm uninstall echarts
安装:npm install echarts@4.9.0

项目可以正常运行了。

以下为凑字数。
Echarts
官网链接:http://echarts.baidu.com/index.html
github:https://github.com/ecomfe/echarts
文档页:http://echarts.baidu.com/option.html

