Echarts图表报错:TypeError: Cannot read property ‘init’ of undefined解决 用vue导入echarts图表报错,在这里使用两种方法解决 将原来导入的 import echarts from 'echarts' 改为: import * as echarts from 'echarts' 或者换种导入方式改为: let echarts = require('echarts') 即可显示可视化图表, 欢迎补充~