1. 按照此echarts.init标准写法,报错
let myChart = echarts.init(document.getElementById('ipdCharts'))
...
...
...
<div id="ipdCharts" style={{ width: '900px', height: '400px' }}></div>
--->
2.解决办法
修改echarts引入
import echarts from 'echarts/types/dist/echarts'
改成
import * as echarts from 'echarts'
3.echarts成功渲染