Reproduction link
https://stackblitz.com/edit/nextjs-pk1wps?file=pages%2Findex.js
Steps to reproduce
go to the above link
What is expected?
Select should work when enabling open state of dropdown, ensures that the initial server-rendered page matches what will be rendered on the client.
What is actually happening?
Error: Hydration failed because the initial UI does not match what was rendered on the server.
Environment | Info |
---|---|
antd | 5.1.1 |
React | React latest version |
System | Windows 10 |
Browser | Chrome latest version |
1条答案
按热度按时间o8x7eapl1#
Could you try to upgrade antd to latest version?
It still exists: https://stackblitz.com/edit/nextjs-xnf2jr?file=package-lock.json,pages%2Findex.js