vue报错:Cannot read property 'init' of undefined

vue项目报错: 

    Cannot read property 'init' of undefined

原因: echarts版本过高

解决:

1、查看package.json中的echarts版本:   结果为5.0

2、终端中输入: npm uninstall echarts     卸载echarts

3、终端中输入:npm install echarts@4.2.0-rc.2 --save     安装低版本echarts    

到此报错解决,是不是很简单呢?