Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydration Error when i importing Dashboardlayout in my next js app #44601

Closed
ashishjaswal2002 opened this issue Nov 29, 2024 · 2 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@ashishjaswal2002
Copy link

ashishjaswal2002 commented Nov 29, 2024

Steps to reproduce

Steps:

  1. Open this link to live example: (required)

Current behavior

mui/toolpad#4491

Expected behavior

mui/toolpad#4491

Context

mui/toolpad#4491

Your environment

My issue listed here please click on the link

Search keywords: Material ui toolpad

@ashishjaswal2002 ashishjaswal2002 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 29, 2024
@ashishjaswal2002
Copy link
Author

I am getting this error

Console Error

Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used

  • A server/client branch if (typeof window !== 'undefined').
  • Variable input such as Date.now() or Math.random() which changes each time it's called.
  • Date formatting in a user's locale which doesn't match the server.
  • External changing data without sending a snapshot of it along with the HTML.
  • Invalid HTML tag nesting.

It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.

See more info here: https://nextjs.org/docs/messages/react-hydration-error

...
<Router actionQueue={{state:{...}, ...}} assetPrefix="">



<ReactDevOverlay state={{nextId:1, ...}} dispatcher={{...}}>

<NotFoundBoundary notFound={}>
<NotFoundErrorBoundary pathname="/tournamen..." notFound={} ...>




<script>
<script>
<script>
<script>
<script>
<script>
<script>
<script>
<script>


...
...

  •                                              data-toolpad-color-scheme="dark"
    

@aarongarciah aarongarciah added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 29, 2024
@aarongarciah
Copy link
Member

Duplicate of mui/toolpad#4491

@aarongarciah aarongarciah closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants