解决方法:
1、将
import echarts from 'echarts';
改为
import * as echarts from 'echarts';
2、重装Echarts,卸载掉Echars5.x,装Echarts4.x,同样可以解决问题。
原文链接:(8条消息) 解决“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘报错_Compass的博客-CSDN博客
myqinyh 2021-12-29 10:11 原文
解决方法:
1、将
import echarts from 'echarts';
改为
import * as echarts from 'echarts';
2、重装Echarts,卸载掉Echars5.x,装Echarts4.x,同样可以解决问题。
原文链接:(8条消息) 解决“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘报错_Compass的博客-CSDN博客