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