Echarts报错01_TypeError: Cannot read property 'init' of undefined ParadoxLin 2022-02-24 144 阅读1分钟 报错信息 TypeError: Cannot read property 'init' of undefined 原因 版本问题导致的引入语句不对 解决方法 import ECharts from 'echarts' //该语句报错 import * as ECharts from 'echarts' //写法1 let ECharts = require('echarts') //写法2