question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hydration mismatch error

See original GitHub issue

Environment

  • 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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
danielroecommented, Oct 16, 2021

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?

1reaction
thekhairulcommented, Oct 16, 2021

Yes, you’re right. It’s working in incognito. My apologies. I should’ve tried that already

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found