Next.js Discord

Discord Forum

i have some error when i use next-themes

Answered
Xiro Code Dạo posted this in #help-forum
Open in Discord
Help me pls
Answered by Giant panda
Read the readme of next-themes, it has a section why this is happening.
View full answer

4 Replies

Also have this message but with style attribute only. I use TailwindCSS, DaisyUI, and have few components using RadixUI
Giant panda
Read the readme of next-themes, it has a section why this is happening.
Answer
use props suppressHydrationWarning to fix it