导入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‘)
最新推荐文章于 2024-01-03 12:08:32 发布
导入echarts时用:import echarts from ‘echarts’ 出现 “Cannot read property ‘init’ of undefined” 报错,改成 import * as echarts from ‘echarts’ 后解决。