ECharts is not Loaded error report, import map does not display solution

Import map error ECharts is not Loaded

Premise: The map js file is imported, but it cannot be displayed successfully. The error statement contains ECharts is not Loaded, and other echarts charts on the same page are normal.
This is the error statement of the china.js file,
insert image description here
indicating that the china.js file has been successfully imported at this time , but in the js Echarts is not imported in the file. There may be problems with the statement introducing echarts in this js file. Let's modify the code and re-introduce echarts

import * as echarts from 'echarts/lib/echarts'

insert image description here

Note
that the modification is China.js, write the correct path where echarts is located

Guess you like

Origin blog.csdn.net/qq_45742383/article/details/130306229
Recommended