“import echarts from ‘echarts/lib/echarts.js’” is not supported anymore. Use “import * as echarts from ‘echarts/lib/echarts.js’”
我的项目引入的是 echats5 一直报这个错,
方法一:不要在main.js里面引用了。直接在你写的 echats组件页面里面引用
方法二:降版本
npm install echarts@4.9.0 --save
“import echarts from ‘echarts/lib/echarts.js’” is not supported anymore. Use “import * as echarts from ‘echarts/lib/echarts.js’”
我的项目引入的是 echats5 一直报这个错,
方法一:不要在main.js里面引用了。直接在你写的 echats组件页面里面引用
方法二:降版本
npm install echarts@4.9.0 --save