在使用echarts的时候遇到了版本问题。
我安装的版本是5.0.0,卸载换成低版本的。
npm uninstall echarts
npm install [email protected]
成功解决。