导入echarts时用:import echarts from 'echarts'
出现 “Cannot read property ‘init’ of undefined” 报错
解决办法:改成 import * as echarts from 'echarts'
后解决。
echarts出现 “TypeError: Cannot read property ‘init‘ of undefined“报错
最新推荐文章于 2024-06-19 20:53:45 发布
导入echarts时用:import echarts from 'echarts'
出现 “Cannot read property ‘init’ of undefined” 报错
解决办法:改成 import * as echarts from 'echarts'
后解决。