npm i v-charts echarts -S

  1.在main.js中使用报以下错

liquidFill echarts/lib/visual/dataColor 找不到

  出现此原因是因为版本问题

npm WARN echarts-liquidfill@2.0.6 requires a peer of echarts@^4.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN echarts-liquidfill@2.0.6 requires a peer of zrender@^4.3.1 but none is installed. You must install peer dependencies yourself.

  解决方案

npm i echarts@^4.8.0 zrender@^4.3.1

  2.如果出现这样的报错

Component series.liquidFill not exists. Load it first.

  解决办法

import 'echarts-liquidfill/src/liquidFill.js'

  

相关文章:

  • 2021-10-23
  • 2021-12-14
  • 2022-12-23
  • 2021-06-23
  • 2021-11-02
  • 2021-04-19
  • 2021-08-06
猜你喜欢
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-13
  • 2022-01-12
  • 2022-12-23
相关资源
相似解决方案