Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG] ESM packages d3-array in remix #2781

Open
where-picturesque opened this issue Nov 21, 2024 · 0 comments
Open

🐛[BUG] ESM packages d3-array in remix #2781

where-picturesque opened this issue Nov 21, 2024 · 0 comments

Comments

@where-picturesque
Copy link

where-picturesque commented Nov 21, 2024

🐛 bug 描述 [详细地描述 bug,让大家都能理解]

remix 项目
/project/workspace/node_modules/@antv/g2/lib/transform/utils/order.js:4 const d3_array_1 = require("d3-array"); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /project/workspace/node_modules/d3-array/src/index.js from /project/workspace/node_modules/@antv/g2/lib/transform/utils/order.js not supported. Instead change the require of index.js in /project/workspace/node_modules/@antv/g2/lib/transform/utils/order.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/project/workspace/node_modules/@antv/g2/lib/transform/utils/order.js:4:20)

💻 复现代码 [提供可复现的代码,仓库,或线上示例]

https://codesandbox.io/p/sandbox/ant-design-charts-gmtvt2

© 版本信息

  • ant-design-charts 2.2.3
  • "@ant-design/plots": "2.3.2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant