ant-design / ant-design/pro-components

🐛[BUG]Module not found: Error: Can't resolve 'rc-util'

Open
#8,853 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🐛 bug 描述

更新项目 antd 版本到 `^5.21.6`, @ant-design/pro-components 的版本到 `^2.8.1`, 运行项目报错
![image](https://github.com/user-attachments/assets/d2f6413b-a0f5-4291-8369-8024003c27d7)

我查看了一下 rc-util 各自的具体版本号:
antd > rc-util: ^5.43.0
@ant-design/pro-utils > rc-util: ^5.0.6

### 📷 复现步骤

### 🏞 期望结果

### 💻 复现代码

```
"dependencies": {
"@ant-design/icons": "^5.5.1",
"@ant-design/pro-components": "^2.8.1",
"@umijs/max": "^4.3.31",,
"antd": "^5.21.6",
},
```

### © 版本信息

- ProComponents 版本: [^2.8.1]
- umi 版本: [^4.3.31]

Contributor guide

Open the contributing guide

Research direction

Start with the dependency list in the reproduction details and reproduce the build using the stated antd, @ant-design/pro-components, and umi versions. Trace why rc-util cannot be resolved and verify that the project starts without the module-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.