Still getting hydration errors #10102
Unanswered
drscottlobo
asked this question in
General
Replies: 1 comment 4 replies
-
Could you try removing the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi there! I'm still getting constant hydration errors in Next JS. I have removed the --turbo flag from my dev command and I think implemented all the fixes from the Docs on using with Next. But nothing seems to work. I'm still having a hydration error at "<style data-emotion="css-global ad1llf" data-s="">"
Here are is my current package setup:
Here is my layout.tsx file:
And my Chakra provider:
Here is the error from the console, it looks like what is in the Docs currently listed for hydration errors, but I think I have implemented all the suggested fixes. Is there something I am still missing?
https://react.dev/link/hydration-mismatch
...
<AppDevOverlayErrorBoundary globalError={[...]} onError={function bound dispatchSetState}>
<HTTPAccessFallbackBoundary notFound={}>
<HTTPAccessFallbackErrorBoundary pathname="/playgroun..." notFound={} ...>
<ChakraProvider value={{$$chakra:true, ...}}>
<chakra(div) position="fixed" zIndex={-1} height="100vh" width="100vw">
at throwOnHydrationMismatch (react-dom-client.development.js:4432:1)
at beginWork (react-dom-client.development.js:10804:1)
at runWithFiberInDEV (react-dom-client.development.js:844:1)
at performUnitOfWork (react-dom-client.development.js:15257:1)
at workLoopConcurrentByScheduler (react-dom-client.development.js:15251:1)
at renderRootConcurrent (react-dom-client.development.js:15226:1)
at performWorkOnRoot (react-dom-client.development.js:14524:1)
at performWorkOnRootViaSchedulerTask (react-dom-client.development.js:16349:1)
at MessagePort.performWorkUntilDeadline (scheduler.development.js:45:1)
at div ()
at eval (factory.js:198:26)
at chakra(div) (webpack-internal:///(app-pages-browser)/node_modules/@emotion/react/dist/emotion-element-489459f2.browser.development.esm.js:56:12)
at Background (Background.jsx:7:3)
at RootLayout (layout.tsx:40:7)
Link to Reproduction
n/a
Steps to reproduce
Chakra UI Version
3.21.0
Browser
No response
Operating System
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions