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 children mismatch with simple `input` of type `email`

See original GitHub issue

Environment


  • Operating System: Darwin
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.8
  • Package Manager: yarn@1.22.18
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-fpnxxl?file=app.vue,pages%2Findex.vue

Describe the bug

An hydratation warn appears when using an input of type text or email inside index.vue file.

Additional context

It does not occur if moving code in app.vue without pages folder.

It does not occur with type date.

Logs

vue.js?v=cd7cae4a:1268 [Vue warn]: Hydration children mismatch in <form>: server rendered element contains more child nodes than client vdom. 
  at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > 
  at <Anonymous key="/" routeProps= {Component: {…}, route: {…}} pageKey="/" > 
  at <BaseTransition mode="out-in" appear=false persisted=false  ... > 
  at <Transition name="page" mode="out-in" > 
  at <RouterView name=undefined route=undefined > 
  at <NuxtPage> 
  at <App key=1 > 
  at <NuxtRoot>

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pi0commented, Aug 29, 2022

Could it be possible because of a chrome extension trying to modify the DOM at same time of hydration? (Can you reproduce in incognito with all exts disabled?)

0reactions
larbishcommented, Aug 29, 2022

Indeed ! I found the guilty, it was caused by a Chrome extension (NordPass).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hydration failed because the initial UI does not match ... - GitHub
The error was happening on a login page, so the extension tampered with the HTML of the login form and therefore caused the...
Read more >
[Vue][SSR] Suppress hydration mismatch warning
I'm rendering a Vue component to HTML and it is expected that the DOM rendering/hydration doesn't completely match the HTML rendered version.
Read more >
react-hydration-error - Next.js
The first render is called Hydration which is a feature of React. This can cause the React tree to be out of sync...
Read more >
Understand and solve hydration errors in Vue.js - sum.cumo
This message is output during so-called (client-side) hydration, which takes place in the browser. What is hydration? The documentation included ...
Read more >
react 18 hydration error | The AI Search Engine You Control
React 18: Hydration failed because the initial UI does not match what was rendered ... I am attempting to use react-hook-form for a...
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