Solution:
1. Change
import echarts from 'echarts';
to
import * as echarts from 'echarts';
2. Reinstall echarts and uninstall echars5.x. Install echarts4.x. It can also solve the problem.
Solution:
1. Change
import echarts from 'echarts';
to
import * as echarts from 'echarts';
2. Reinstall echarts and uninstall echars5.x. Install echarts4.x. It can also solve the problem.