vue-plyr icon indicating copy to clipboard operation
vue-plyr copied to clipboard

Nuxt SSR - The client-side rendered virtual DOM tree is not matching server-rendered content

Open vin-ni opened this issue 2 years ago • 4 comments

I get that error when using plyr in a component.

Unfortunately this forces a full client side render of the page. Any ideas how this could be fixed?

Full Error: [Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.

My implementation:

    <div v-if="videoplayer" class="plyr-video-wrapper">
      <vue-plyr ref="plyr">
        <video controls crossorigin playsinline :data-poster="poster">
          <source :src="videoHighRes.url" type="video/mp4" />
        </video>
      </vue-plyr>
    </div>

Thank you!

vin-ni avatar Aug 04 '21 11:08 vin-ni

https://github.com/redxtech/vue-plyr/issues/443#issuecomment-895682966 Maybe this will help you.

zpzyyzp avatar Aug 16 '21 06:08 zpzyyzp

I will test it. Thanks!

vin-ni avatar Aug 23 '21 16:08 vin-ni

<client-only> solves it, but is rather a hack i believe. How could I do true ssr? It seems it used to work some time. The demos are also broken though.

vin-ni avatar Sep 22 '21 10:09 vin-ni

I ran into the same issue with the newer 7.0 version. 6 was not giving me that error, plus the css build process is not working, so I am just not going to use this module any longer ... :-(

lustremedia avatar Sep 27 '21 07:09 lustremedia