ant-design / ant-design/pro-components
Sub-packages peerDependencies not compatible with antd v6
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
## Environment
- antd: 6.3.7
- @ant-design/pro-components: 3.1.12-0
- React: 19.2.5
- @ant-design/cli: 6.3.7
## Problem
Running `npx antd doctor` in a project using antd v6 reports 10 peerDependency failures. The top-level `@ant-design/pro-components` correctly declares compatibility with antd v6, but its internal sub-packages still declare `antd: ^4.24.15 || ^5.11.2`, which does not cover antd v6.
## Affected packages
| Package | Version | peerDep for antd |
|---------|---------|-----------------|
| @ant-design/pro-card | 2.10.0 | ^4.24.15 \|\| ^5.11.2 |
| @ant-design/pro-descriptions | 2.6.10 | ^4.24.15 \|\| ^5.11.2 |
| @ant-design/pro-field | 3.1.0 | ^4.24.15 \|\| ^5.11.2 |
| @ant-design/pro-form | 2.32.0 | ^4.24.15 \|\| ^5.11.2 |
| @ant-design/pro-layout | 7.22.7 | ^4.24.15 \|\| ^5.11.2 |
| @ant-design/pro-list | 2.6.10 | ^4.24.15 \|\| ^5.11.2 |
| @ant-design/pro-provider | 2.16.2 | ^4.24.15 \|\| ^5.11.2 |
| @ant-design/pro-skeleton | 2.2.1 | ^4.24.15 \|\| ^5.11.2 |
| @ant-design/pro-table | 3.21.0 | ^4.24.15 \|\| ^5.11.2 |
| @ant-design/pro-utils | 2.18.0 | ^4.24.15 \|\| ^5.11.2 |
## `antd doctor` output
```
✗ [ecosystem-compat:pro-card] @ant-design/pro-card 2.10.0 peerDep issues: antd requires ^4.24.15 || ^5.11.2 (installed: 6.3.7)
✗ [ecosystem-compat:pro-descriptions] @ant-design/pro-descriptions 2.6.10 peerDep issues: antd requires ^4.24.15 || ^5.11.2 (installed: 6.3.7)
✗ [ecosystem-compat:pro-field] @ant-design/pro-field 3.1.0 peerDep issues: antd requires ^4.24.15 || ^5.11.2 (installed: 6.3.7)
✗ [ecosystem-compat:pro-form] @ant-design/pro-form 2.32.0 peerDep issues: antd requires ^4.24.15 || ^5.11.2 (installed: 6.3.7)
✗ [ecosystem-compat:pro-layout] @ant-design/pro-layout 7.22.7 peerDep issues: antd requires ^4.24.15 || ^5.11.2 (installed: 6.3.7)
✗ [ecosystem-compat:pro-list] @ant-design/pro-list 2.6.10 peerDep issues: antd requires ^4.24.15 || ^5.11.2 (installed: 6.3.7)
✗ [ecosystem-compat:pro-provider] @ant-design/pro-provider 2.16.2 peerDep issues: antd requires ^4.24.15 || ^5.11.2 (installed: 6.3.7)
✗ [ecosystem-compat:pro-skeleton] @ant-design/pro-skeleton 2.2.1 peerDep issues: antd requires ^4.24.15 || ^5.11.2 (installed: 6.3.7)
✗ [ecosystem-compat:pro-table] @ant-design/pro-table 3.21.0 peerDep issues: antd requires ^4.24.15 || ^5.11.2 (installed: 6.3.7)
✗ [ecosystem-compat:pro-utils] @ant-design/pro-utils 2.18.0 peerDep issues: antd requires ^4.24.15 || ^5.11.2 (installed: 6.3.7)
```
## Expected
All sub-packages should update their peerDependencies to include antd v6, e.g.:
```json
"peerDependencies": {
"antd": "^4.24.15 || ^5.11.2 || ^6.0.0"
}
```
Contributor guide
Research direction
Inspect the package manifests for the ten affected sub-packages listed in the issue and compare their antd peerDependencies with the top-level package. Update the compatibility ranges to include antd v6, then run `npx antd doctor` in an antd v6 project and confirm the reported peerDependency failures are gone.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100