Hydration mismatch error
See original GitHub issueEnvironment
- Operating System:
Linux
- Node Version:
v16.9.0
- Nuxt Version:
3-3.0.0-27235989.d52b1e8
- Package Manager:
Yarn
- Bundler:
Webpack
- User Config:
-
- Runtime Modules:
-
- Build Modules:
-
Describe the bug
I was eager to try out the nuxt 3 beta. And simply followed the installation instructions from https://v3.nuxtjs.org/getting-started/installation . But on running yarn dev -o
or yarn dev
I get a console error saying ‘Hydration completed but contains mismatches.’ Not sure if I’m missing something. I’ve just started with nuxt
Reproduction
Just following the installation steps should reproduce it:
npx nuxi init nuxt3-app
code -r nuxt3-app
yarn install
yarn dev -o
Additional context
The error was generated via @vue/runtime-core:
function createHydrationFunctions(rendererInternals) {
....
if (hasMismatch && !false) {
// this error should show up in production
console.error(`Hydration completed but contains mismatches.`);
}
}
Logs
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Handling the React server hydration mismatch error
How to resolve the server mismatch error when hydrating a shared React component that can be used in client-side only or server-side rendered ......
Read more >Bug: Incorrect Hydration Mismatch Detection during Suspense ...
Bug: Incorrect Hydration Mismatch Detection during Suspense - "Hydration failed because the initial UI does not match what was rendered on the server....
Read more >Hydration Mismatch - vite-plugin-ssr
A hydration mismatch is when the content rendered to HTML in Node.js is not the same than the content rendered in the browser....
Read more >Avoiding hydration mismatch when using React hooks
Bugs caused by hydration mismatches can be of those type: the website works when you navigate from one page to another, but misbehaves...
Read more >Easily Fix React Hydration Errors - Travis Wimer
The reason behind these errors is a mismatch between the HTML provided by the server and what is generated by the frontend React...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
From a cursory glance at the error in your devtools, tt looks to me like you might have a service worker running that’s serving up cached responses. (Or possibly one of your browser extensions could be blocking your network requests.)
Would you try in an incognito tab and see if this issue is reproduced?
Yes, you’re right. It’s working in incognito. My apologies. I should’ve tried that already