引入echarts时报错 “TypeError: Cannot read properties of undefined (reading ‘init‘)“的解决方案

 

用import * as echarts from 'echarts'  替换  import echarts from 'echarts',便可以有效解决

 

posted @ 2023-10-08 10:22  ThisCall  阅读(98)  评论(0编辑  收藏  举报