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

问题

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

解决

引入方式改为:

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

 

Guess you like

Origin blog.csdn.net/huangpb123/article/details/118281348