echart的水晶图

安装并引入了水晶图的文件,但是一直报错Component series.liquidFill not exists. Load it first.百度删了node_modules,引入方式换种写法都试了,最后发现是版本的问题

import echarts from 'echarts';
import 'echarts-liquidfill';


 "echarts": "^4.1.0",
 "echarts-liquidfill": "^2.0.2",
//这样搭配就没问题了,然后就可以正常使用了

具体使用参考官网 

相关文章:

  • 2022-01-14
  • 2022-01-30
猜你喜欢
  • 2022-01-24
  • 2021-09-25
  • 2022-02-09
  • 2022-12-23
  • 2021-10-16
  • 2022-03-01
相关资源
相似解决方案