apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.48k stars 19.62k forks source link

[Bug] #18361

Closed lzl132264 closed 1 year ago

lzl132264 commented 1 year ago

Version

5.4.1

Link to Minimal Reproduction

No response

Steps to Reproduce

1、const modules = import.meta.glob('../../../../node_modules/echarts/lib/chart//install.js'); 2、const newModules = {} as any; Object.keys(modules).map((key) => { const newKey = key.match(/chart\/(.)\/install/)?.[1] as string; newModules[newKey] = modules[key]; }); 3、const chart = (await newModules[props.chartType as any]().then((resolve: any) => resolve)).install; use([ chart, ]);

Current Behavior

The chart didn't render.

Expected Behavior

Render the chart.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

echarts-bot[bot] commented 1 year ago

I'm sorry to close this issue for it lacks the necessary title. Please provide a descriptive and as concise as possible title to describe your problems or requests and then the maintainers or I will reopen this issue.

Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.

A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.

Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.