Next.js Discord

Discord Forum

Hydration Failed Error

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
Hey guys, when ever I install next js in my system, i always show me this error, what's this and how to remove it, please anyone help me, Thank you in advance

7 Replies

I think you didn't read shadcn's dark theme docs
it tells you to add suppressHydrationWarning in html tag
which will fix this issue
Spectacled bearOP
Ohh
Thank you
It worked
Actually I'm new to Next js