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'