“echarts”‘ has no exported member named ‘EChartOption‘. Did you mean ‘EChartsOption‘ instead?
yarn add echarts
echarts 版本 5.1.2
import echarts, { EChartOption } from 'echarts';
yarn add -D @types/echarts
改为
import echarts, { EChartsOption } from 'echarts';
依然提示
网上各种搜,也没找到解决方案,只了解到4和5差的很多,于是乎,我就安装4.9.0版本了
yarn add echarts@4.9.0
import echarts, { EChartOption } from 'echarts';
一切安好
还没有评论,来说两句吧...