vue安装使用v-chart时报错解决方案


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'

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM