$ errors.fyi/nextjs/react-hydration-error 128 namespaces · 4,025 codes
nextjs · nextjs/react-hydration-error
react-hydration-error

React Hydration Error

The HTML rendered on the server does not match what React renders on the client during hydration. Common causes include using browser-only APIs (Date, Math.random, localStorage) or conditional rendering that differs between server and client. Wrap the offending component in a dynamic import with ssr: false, or use the useEffect hook to run client-only code after mount.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT