vue 使用 echarts 5.0 “export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
方法一 (简单粗暴):
import * as echarts from ‘echarts’
方法二(更换版本):
npm uninstall echarts //卸载
安装
npm install echarts@4.9.0
npm fund
npm run dev
vue 使用 echarts 5.0 “export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
方法一 (简单粗暴):
import * as echarts from ‘echarts’
方法二(更换版本):
npm uninstall echarts //卸载
安装
npm install echarts@4.9.0
npm fund
npm run dev