-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 class/style/attr mismatch on SSR components #10051
Comments
I am reopening it because there still seems to be a problem. Examples: Hydration attribute mismatch on <input... Also migueabellan is having same issues with VNavigationDrawer and VAppBar. Hydration attribute mismatch on <header... Issues from other libs: Thanks for your help! |
It looks like changes are being made, let's see if it solves these problems as well. |
|
I can't seem to reproduce the class related warnings, can only see mismatch for |
If the |
I tried the new release and my console is full of hydration warns. I think it still needs some work to fix it. In my particular case I am using Vuetify and I am getting now "Hydration attribute mismatch" on many components.
For this one I have many warns up to input-27
In total I have 14 warn messages in that page. I am trying to reproduce the same in the following page, but it is working fine there. This is so weird. And then, here is the example from @migueabellan bumped to the latest version that still fails with the following warn: [Vue warn]: Hydration style mismatch on Hope this can help, sorry for tagging @yyx990803 As the issue is closed, I don't know any other way to keep this conversation. While writing I see other issue being created: #10069 |
I too agree with the above, some more work is still required to resolve this. I've just tested the new release and although it has resolved some of the issues, such as the one with the
Simplified code to reproduce:
|
Resolved with the latest release https://github.com/vuejs/core/blob/main/CHANGELOG.md#349-2024-01-11 🎉 |
With Nuxt Image I'm getting a lot of hydration errors on the latest Vue (
|
Still having the same errors Here is an example: |
Okay, of all these alerts, the first one has disappeared, but both the for="" and the draggable="" still appear. Same with this example: https://stackblitz.com/edit/nuxt-starter-lunnwj It might be related to what you were saying about the way Vuetify uses the computed values? #10069 I would have to report it directly to Vuetify then or will you keep working to fix it from Vue? It's not clear to me, as the above issue is still open. Thanks @yyx990803 |
With the latest version this isn't fixed however the amount of mismatches have changed. Now I'm getting:
|
Should be fixed now by 08b60f5 and released in 3.4.11 |
We are getting close. ERRORS IN THE PAST:
For this one I have many warns up to input-27
Icon and draggable ones have been fixed. CURRENT ERRORS:
Also, the z-index Vuetify warn still showing up, don't know who's fault is: NEW ERRORS:
Thanks. |
UPDATE New errors have been fixed in v3.4.13 ✅ CURRENT ERRORS:
Also, the z-index Vuetify warn reproduction: Probably both of them related. I still don't know if it's a problem with Vue or Vuetify. |
In the latest update I'm getting hydration errors on how whitespace is handled
My vue settings for whitespace are as follows:
|
nuxt-aos lib same ploblem.... |
Vue version
3.4.7
Link to minimal reproduction
https://stackblitz.com/edit/nuxt-starter-14rqc1
Steps to reproduce
Visit the reproduction Link.
IMPORTANT: The viewport have to be large. I have extended the browser to my second monitor to increase the website width size.
What is expected?
There should be no vue warns
What is actually happening?
There are mismatch vue warns
System Info
Any additional comments?
This happens since Vue 3.4.5
[Vue warn]: Hydration class mismatch on <div class="v-slide-group v-slide-group--has-affixes v-slide-group--is-overflowing" style tabindex="0">…
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
You should fix the source of the mismatch.
at
This also happens with other components, VNavigationDrawer and VBanner, all of them using computed display classes --mobile.
Don't know if this has anything to do with: /vuetify/src/composables/display.ts
const displayClasses = computed(() => { ... }
Another similar bug has been solved recently in Vue v3.4.6
#10006
As I don't know how to reproduce the error without Vuetify and have no idea what is exactly the root cause of this issue, I am opening the same issue in both projects.
Link to Vuetify issue: vuetifyjs/vuetify#19002
The text was updated successfully, but these errors were encountered: