ant-design Hydration error on Form on NextJS

33qvvth1  于 2023-02-04  发布在  其他
关注(0)|答案(3)|浏览(189)

https://stackblitz.com/edit/nextjs-t8gqmd?file=app/page.js

Steps to reproduce

create a new NextJS13 and enable the experimental appDir in the next.config.js.
After that install antd, insert the basic form code: https://ant.design/components/form#components-form-demo-basic add 'use client' at the top and run the application.

What is expected?

no error

What is actually happening?

getting an hydration error

EnvironmentInfo
antd5.1.5
React18.2.0
SystemWindows
BrowserChrome

seems to be an issue with the <Input.Password /> or

相关问题