Closed callmesoul closed 3 years ago
Cannot read property 'init' of undefined
echarts 5.0以上会报这个错,降到4.9就可以了
从报错来看,是echarts对象没有正确引进导致的。官方建议通过如下方式引进:
echarts
import * as echarts from 'echarts';
const echarts = require('echarts');
详见 官方文档
Cannot read property 'init' of undefined
echarts 5.0以上会报这个错,降到4.9就可以了