ant-design / ant-design/pro-flow

🐛[BUG] npm run build 打包失败

Open
#115 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
353
Forks
36
PR merge metrics
No merged PRs in 30d

Description

### 🐛 bug 描述

npm run build 的时候失败,报错
"BoxSelect" is not exported by "node_modules/.pnpm/lucide-react@0.471.1_react@18.2.0/node_modules/lucide-react/dist/esm/lucide-react.js"
看起来是 lucide-react.js 最新版本中删除了 BoxSelect 改成了 BoxSelectIcon
https://github.com/lucide-icons/lucide/issues/2733

翻看 package.json 发现确实是用了最新的 lucide-react.js 版本

![Image](https://github.com/user-attachments/assets/30b13808-766c-4404-97bd-893bd4d74ad0)

### 📷 复现步骤

npm run build 即可复现

![Image](https://github.com/user-attachments/assets/eec3dd70-3e0f-408b-a510-f850ceb52bd7)

### 🏞 期望结果

重新打包成功即可

### 💻 复现代码

### © 版本信息

- pro-flow-editor 版本: latest
- 浏览器环境
- 开发环境 [windows,node 20.1.0]

### 🚑 其他信息

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running `npm run build` with the Node 20.1.0 environment described in the issue and inspect `package.json` for the lucide-react dependency. Trace the `BoxSelect` import reported by the build error and update the affected usage to match the installed package API. Done means `npm run build` completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
build-system, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.