导入Echarts时用:import echarts from 'echarts' 会出现 “Cannot read property ‘init’ of undefined” 报错,改成 import * as echarts from 'echarts' 就可以啦!!!
使用Echarts “TypeError: Cannot read properties of undefined (reading ‘init‘)“
于 2021-12-21 15:37:51 首次发布
导入Echarts时用:import echarts from 'echarts' 会出现 “Cannot read property ‘init’ of undefined” 报错,改成 import * as echarts from 'echarts' 就可以啦!!!