-
Notifications
You must be signed in to change notification settings - Fork 571
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 after Next.js and React.js version upgrade #3
Comments
Solved it by not using nextjs 13. |
Hi @manjushsh and @Julien-Sytadelle, Thanks for reporting this. As @Julien-Sytadelle has pointed out, this is not updated to the latest version of Next.js 13. It is suggested to not update packages manually as it may break the template. All the packages will be updated to the latest version in the next update along with Next.js 13 support. It will take some time and we appreciate your patience. We have updated all the packages to their latest versions along with Next.js 13 support in the Materio Pro. If you want the latest Next.js 13 support, you may purchase our Materio Pro or wait till we release an update for the Materio Free. |
Okay @neelbrahmakshatriya, Thank you |
@manjushsh Here is a version of the I hope it's useful for you. |
@jorcelinojunior Thank You! I will try it out. |
hi i, am using js folder getting Unhandled Runtime Error Error: Hydration failed because the initial UI does not match what was rendered on the server. Warning: Expected server HTML to contain a matching in . See more info here: https://nextjs.org/docs/messages/react-hydration-error how i can fix. do i need to update all pulgin in package.json FIXcomment // const StyledLink = styled('a')({
|
Thankyou pratik007kumar for pointing me in the right direction, but a better way to solve the hydration error is to remove Link completely and put it's parameters inside of StyledLink, like so :
you can see that the problem was Link is actually an
if you still get the hydration error after applying this fix, go to line 71 of /src/@core/layouts/components/vertical/navigation/verticalnavlink.js and change |
Hello everyone, Great news! We've rolled out a new version that includes the Next.js v14 App Router. Please go ahead and give it a try. We're confident that the issue you've been experiencing should now be resolved in this latest update. I'm going to close this thread since the issue is fixed in the new version, but don't hesitate to open a new issue if you encounter any problems. Your feedback is always welcome! |
Steps to reproduce
yarn add next@latest react@latest react-dom@latest eslint-config-next@latest
as mentioned in Next.js upgrade guideyarn dev
What is expected?
Template dashboard without any error should be shown.
What is actually happening?
Facing error (Can access dashboard if we close error popup) :
Error: Hydration failed because the initial UI does not match what was rendered on the server.
Reference: https://nextjs.org/docs/messages/react-hydration-error
Additional data
The text was updated successfully, but these errors were encountered: