Next.js Discord

Discord Forum

Why hydration error for a custom Layout?

Answered
touhidurrr ๐Ÿ‡ต๐Ÿ‡ธ posted this in #help-forum
Open in Discord
It happens when I visit the /retake path from sidebar.
Answered by touhidurrr ๐Ÿ‡ต๐Ÿ‡ธ
Sorry for late reply. Today after upgrading to Next.js 15.1, I noticed that the hydration error is fixed. Previously I was using Next.js 14. Thanks for responding!!
View full answer

4 Replies

@touhidurrr ๐Ÿ‡ต๐Ÿ‡ธ It happens when I visit the `/retake` path from sidebar.
can you show the error? it should tell you the error
if not, show the code of layout
@@ts-ignore can you show the error? it should tell you the error
out now. I will send ss when I am back Inshallah.
Sorry for late reply. Today after upgrading to Next.js 15.1, I noticed that the hydration error is fixed. Previously I was using Next.js 14. Thanks for responding!!
Answer