“echarts”‘ has no exported member named ‘EChartOption‘. Did you mean ‘EChartsOption‘ instead?
Posted ur home
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了“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';
一切安好
以上是关于“echarts”‘ has no exported member named ‘EChartOption‘. Did you mean ‘EChartsOption‘ instead?的主要内容,如果未能解决你的问题,请参考以下文章
vscode:Module ‘“xxx/node_modules/vue/dist/vue“‘ has no exported member ‘ref‘
AttributeError: ‘Conv‘ object has no attribute ‘fuseforward‘
AttributeError: ‘Conv‘ object has no attribute ‘fuseforward‘
AttributeError: ‘tensorrt.tensorrt.Builder‘ object has no attribute ‘build_cuda_engine‘
AttributeError: ‘tensorrt.tensorrt.Builder‘ object has no attribute ‘build_cuda_engine‘
Tensorflow ValueError: Protocol message RewriterConfig has no "layout_optimizer" field(示例代