ant-design / ant-design/pro-components
🐛[BUG] next14 + ant design5.18.2 ,使用 官网登录表单案例报错: TypeError: Cannot read properties of undefined (reading 'Group')
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🐛 bug 描述
复制官网案例,啥也没改,运行报错:TypeError: Cannot read properties of undefined (reading 'Group')
### 📷 复现步骤
版本信息:
"dependencies": {
"@ant-design/cssinjs": "^1.21.0",
"@ant-design/nextjs-registry": "^1.0.0",
"@ant-design/pro-components": "^2.7.10",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@fortune-sheet/react": "^0.19.9",
"antd": "^5.18.2",
"axios": "^1.7.2",
"bcryptjs": "^2.4.3",
"express": "^4.19.2",
"http-proxy-middleware": "^3.0.0",
"i18next": "^23.11.5",
"joi": "^17.13.1",
"jsonwebtoken": "^9.0.2",
"moment": "^2.30.1",
"mongoose": "^8.4.1",
"next": "14.2.4",
"next-cookies": "^2.0.3",
"next-i18next": "^15.3.0",
"next-intl": "^3.15.2",
"nodemon": "^3.1.2",
"react": "^18",
"react-dom": "^18",
"react-i18next": "^14.1.2",
"sass": "^1.77.4",
"sharp": "^0.33.4",
"typescript": "^5.4.5"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.6",
"@types/jsonwebtoken": "^9.0.6",
"@types/node": "^20.14.5",
"@types/react": "18.3.3",
"eslint": "^8",
"eslint-config-next": "14.2.3",
"node-sass": "^9.0.0"
}
### 🏞 期望结果
描述你原本期望看到的结果
### 💻 复现代码
LoginForm 登录表单案例:
https://procomponents.ant.design/components/login-form
### © 版本信息
- ProComponents 版本: 2.7.10
- 浏览器环境
- 开发环境 window
### 🚑 其他信息
![Uploading image.png…]()
Contributor guide
Research direction
Start with the LoginForm example at https://procomponents.ant.design/components/login-form and reproduce it using Next 14.2.4, antd 5.18.2, and ProComponents 2.7.10. Trace the undefined value behind the reported TypeError when reading Group, then verify that the example runs without the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100