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.

v-img produces node mismatch on nuxt

See original GitHub issue

Versions and Environment

Vuetify: 1.2.3 Vue: 2.5.17 Browsers: Chrome 69 OS: Windows 10

Previously worked in:

Vuetify: Vue:

Steps to reproduce

Cannot reproduce using codepen. This requires nuxt SSR rendering.

Expected Behavior

v-img produces node mismatch.

mismatching childNodes vs. VNodes:
NodeList(2) [div.v-responsive__sizer, div.v-image__image.v-image__image–preload.v-image__image–cover]

(3) [VNode, VNode, VNode] 0: VNode {tag: “div”, data: {…}, children: undefined, text: undefined, elm: div.v-responsive__sizer, …} 1: VNode {tag: “vue-component-215-transition”, data: {…}, children: undefined, text: undefined, elm: div.v-image__image.v-image__image–preload.v-image__image–cover, …} 2: VNode {tag: “div”, data: {…}, children: undefined, text: undefined, elm: div.v-responsive__content, …}

Actual Behavior

From what I can see SSR produces two children.

<div class="v-responsive__sizer" style="padding-bottom: 66.65%;"></div>
<div class="v-image__image v-image__image--cover" style=""></div>

But on client we also have a third child <div class="v-responsive__content"></div>

Which causes the error.

Reproduction Link


Additional Comments:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
8bucommented, Sep 27, 2018

Got the same problem, even with v-carousel-item. Sometimes they render <v-carousel-item :src="..."> to <div src="..."> but it’s gone when we try to refresh the page. Weird behavior

0reactions
Globeradacommented, Oct 30, 2018

Same here with v-img. As @dotneet suggested, with aspect-ratio=“1” is gone

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vuetify/Nuxt Production environment components not working ...
I added the code, producing the error above. Honestly, not sure why that component is producing the DOM mismatch. – Tyler. Jun 27...
Read more >
Bountysource
v-img produces node mismatch on nuxt.
Read more >
Should I ignore these kind of warnings? "Hydration node ...
"Hydration node mismatch". I am using this package "FormKit" for handling forms and validation. it shows this warning for every element I ...
Read more >
A.19. Common libvirt Errors and Troubleshooting
The following examples produce similar error messages and show variations of mismatched XML tags. This snippet contains an mismatch error for <features> because ......
Read more >
Troubleshoot instances with failed status checks
(Root file system/device mismatch); XENBUS: Device with no driver... ... UTF-8 KEYTABLE=us initrd /boot/initramfs-2.6.35.14-95.38.amzn1.i686.img ERROR: ...
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