You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2026/07/15 00:02:11 UTC
(superset) branch fix-echarts-i18n-dynamic-import created (now 8a8d1e52c00)
This is an automated email from the ASF dual-hosted git repository.
eschutho pushed a change to branch fix-echarts-i18n-dynamic-import
in repository https://gitbox.apache.org/repos/asf/superset.git
at 8a8d1e52c00 fix(plugin-chart-echarts): use echarts 5.6.0 i18n export path for locale import
This branch includes the following new commits:
new 8a8d1e52c00 fix(plugin-chart-echarts): use echarts 5.6.0 i18n export path for locale import
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(superset) 01/01: fix(plugin-chart-echarts): use echarts 5.6.0 i18n export path for locale import
Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
eschutho pushed a commit to branch fix-echarts-i18n-dynamic-import
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 8a8d1e52c00f172ce922153e77313328563ca4e2
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Wed Jul 15 00:01:52 2026 +0000
fix(plugin-chart-echarts): use echarts 5.6.0 i18n export path for locale import
echarts 5.6.0 added a package.json exports field. The catch-all
"./*": "./*" entry maps "./lib/i18n" to itself with no .js extension.
webpack 5's enhanced-resolve with fullySpecified=true then fails to
resolve the file, producing a build warning.
Fix by switching to the top-level `i18n/` export path (`./i18n/*`)
which is an explicit entry in the echarts 5.6.0 exports field, and
adding the explicit `.js` extension so enhanced-resolve can find the
file under fullySpecified mode.
The locale files (langEN.js, langZH.js, etc.) exist in echarts' i18n/
directory at the package root.
Co-Authored-By: Claude <no...@anthropic.com>
---
.../plugins/plugin-chart-echarts/src/components/Echart.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/components/Echart.tsx b/superset-frontend/plugins/plugin-chart-echarts/src/components/Echart.tsx
index 43fc7bf2bb0..bb2c1d643f1 100644
--- a/superset-frontend/plugins/plugin-chart-echarts/src/components/Echart.tsx
+++ b/superset-frontend/plugins/plugin-chart-echarts/src/components/Echart.tsx
@@ -124,7 +124,7 @@ use([
const loadLocale = async (locale: string) => {
let lang;
try {
- lang = await import(`echarts/lib/i18n/lang${locale}`);
+ lang = await import(`echarts/i18n/lang${locale}.js`);
} catch {
// Locale not supported in ECharts
}