引入echars5.0报错“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
2021年04月21日
776
引入echars5.0报错“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
解决方法,在vue文件中,找到
import echarts from 'echarts';
改为
import * as echarts from 'echarts';
// 或
const echarts = require('echarts');
