ant-design / ant-design/pro-components
ProFormColorPicker在ModalForm里作为ProTable的Action构建后出错显示require is not defined🐛[BUG]
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🐛 bug 描述
代码如下,dev模式下可以正常运行,但build上线之后出问题
```
[
创建标签}
>
]}
/>
```
已经改用Form.Item + ColorPicker 做了替补,忘了截图了。但应该可以复现出来。
版本大约是
"@ant-design/pro-components": "^2.6.43",
"antd": "^5.11.5",
Contributor guide
Research direction
Start by reproducing the provided ProTable, ModalForm, and ProFormColorPicker example in a production build using the listed @ant-design/pro-components and antd versions. Compare development and production behavior and capture the `require is not defined` location; done means the production build renders the form without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100