react中引入echarts报错Error: xAxis "0" not found

react中引入echarts报错Error: xAxis "0" not found 

解决办法:在引入页面中加入这行代码 : 

import 'echarts/lib/component/grid'

  

posted @ 2021-06-03 14:53  吴wu聊  阅读(3400)  评论(0)    收藏  举报