Introducing echarts-liquidfill problem into vue

I first introduced echarts, globally, and then introduced plug-ins in components that need to use crystal balls

import "echarts-liquidfill/src/liquidFill.js";

but still report an error

clipboard.png
clipboard.png

echartsecharts-liquidfill
clipboard.png

also re-install after uninstall, still report this error, please give me some advice

Aug.10,2021

it can be tested locally, but not online


Hello, landlord! The latest version of echarts-liquidfill should be incompatible with the latest version of echarts . I tested it locally, and the configuration is as follows:

// package.josn 

 "echarts": "^4.1.0",
 "echarts-liquidfill": "^2.0.2",
import echarts from 'echarts';
import 'echarts-liquidfill';

// domecharts
  var myChart = echarts.init(document.getElementById('main'));
// 
  var option = {
    series: [{
      type: 'liquidFill',
      data: [0.6]
    }]
  };
  myChart.setOption(option);

personal test is OK. If it is helpful, please click to adopt it. Thank you ~

Menu