zl程序教程

您现在的位置是:首页 >  前端

当前栏目

引入echars5.0报错“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘

echarts 报错 in not found 引入 as was
2023-09-27 14:27:10 时间

问题

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

解决

引入方式改为

import * as echarts from 'echarts';
// 或
const echarts = require('echarts');