Error in mounted hook: "TypeError: Cannot read property 'init' of undefined"
let myChart = this.$echarts.init(document.getElementById('radar1'))
报错原因:echarts版本太高了、卸载之后。安装低版本:
cnpm install echarts@4.8.0 -S
但是发现还在报错:
Error: ENOENT: no such file or directory, open
解决办法:
重启服务。重新编译!