报错如下:
"import echarts from 'echarts/lib/echarts.js'" is not supported anymore. Use "import * as echarts from 'echarts/lib/echarts.js'" instead;
vconsole.min.js?3a34:10 [Vue warn]: Error in mounted hook: "TypeError: Cannot read properties of undefined (reading 'LinearGradient')"
找不到这个问题原因很多 其中有一个原因是echarts V5版本问题 因为之前很多教程都是V4的引入方式 ,echart版本与vuecli版本不匹配,所以降低版本到V4版本即可如下
npm install echarts@4.9.0 --save 即可