引入 echars 5.0 遇到报错 "export ‘default’ (imported as ‘echarts’) was not found in ‘echarts’

将引入方式改为

1 import * as echarts from 'echarts';
2 //
3 const echarts = require('echarts');

 

posted @ 2021-07-11 13:45  一个动态类型的幽灵  阅读(131)  评论(0编辑  收藏  举报