ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.14k stars 1.32k forks source link

🐛[BUG] next14 + ant design5.18.2 ,使用 官网登录表单案例报错: TypeError: Cannot read properties of undefined (reading 'Group') #8543

Open Edwin-WB-Li opened 1 week ago

Edwin-WB-Li commented 1 week ago

🐛 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

© 版本信息

🚑 其他信息

![Uploading image.png…]()

Edwin-WB-Li commented 1 week ago

image

json-q commented 1 week ago

antd有说明:https://ant-design.antgroup.com/docs/react/use-with-next-cn