ant-design-charts icon indicating copy to clipboard operation
ant-design-charts copied to clipboard

🐛[BUG]

Open sgy123456 opened this issue 3 years ago • 1 comments

🐛 报错Failed to minify the code from this file: ./node_modules/d3-hierarchy/src/hierarchy/each.js:2

npm run build时候报错 使用版本: "@ant-design/charts": "^1.2.13" node -v
v14.16.1 npm -v 6.14.12

具体报错: npm run build

@ build /Users/admin/git_code/h-qa-platform roadhog build

Build completed in 40.733s

Failed to compile.

Failed to minify the code from this file:

    ./node_modules/d3-hierarchy/src/hierarchy/each.js:2 

Read more here: http://bit.ly/2tRViJ9

[graceful-process#1750] exit with code:1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ build: roadhog build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/admin/.npm/_logs/2021-09-18T07_32_42_234Z-debug.log

📷 复现步骤 [清晰描述复现步骤,让别人也能看到问题]

🏞 期望结果 [描述你原本期望看到的结果]

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

© 版本信息

  • ant-design-charts 版本: [e.g. 0.9.0]
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息 [如截图等其他信息可以贴在这里]

sgy123456 avatar Sep 18 '21 07:09 sgy123456

问题解决了吗?我也碰到同样的问题

wangfeili avatar Jun 19 '22 10:06 wangfeili

更新到最新版本试试,还有问题的话提供个复现

lxfu1 avatar Dec 12 '23 07:12 lxfu1