Hydration children mismatch with simple `input` of type `email`
See original GitHub issueEnvironment
- 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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >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
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?)
Indeed ! I found the guilty, it was caused by a Chrome extension (NordPass).