Prop className
did not match - when using next/font variable prop
#47741
Replies: 7 comments 5 replies
-
Hi, I can't really reproduce this issue. Are you using |
Beta Was this translation helpful? Give feedback.
-
@piotrkulpinski, just encountered this as well. In my case, the font was not available to be fetched from Google, for a brief moment, which forced |
Beta Was this translation helpful? Give feedback.
-
I encountered this error after switching from
Removing the |
Beta Was this translation helpful? Give feedback.
-
Same error |
Beta Was this translation helpful? Give feedback.
-
I am having this issue too. Removing |
Beta Was this translation helpful? Give feedback.
-
In my case the chrome extension "I still don't care about cookies" was the culprit, as it was adding classes to |
Beta Was this translation helpful? Give feedback.
-
In nextConfig, I removed the note: This parameter also causes the 'Hydration failed because the initial UI' error. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm getting a hydration error on a fresh app while trying to use the variable option of next/font package.
Here's my code:
This logs the following warning in the console:
Any way to get rid of that?
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions