Skip to content

Sub-packages peerDependencies not compatible with antd v6 #9629

@afc163

Description

@afc163

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.:

"peerDependencies": {
  "antd": "^4.24.15 || ^5.11.2 || ^6.0.0"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions