pyramation / LaTeX2HTML5

LaTeX and PSTricks rendering for the Web
62 stars 12 forks source link

Nuxt: Dom Tree Mismatch Breaks SSR #29

Open luisgc2116 opened 4 years ago

luisgc2116 commented 4 years ago

When using the official NUXT example, there is a DOM mismatch that breaks SSR with the following errors. Is there any current way to get around this?

[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.
vue.runtime.esm.js?2b0e:6427 Mismatching childNodes vs. VNodes
Parent:  <div class=​"container" data-v-4dcc9c7e>​…​</div>​
pyramation commented 4 years ago

@luisgc2116 does it actually break the render? from the message it looks like it just performs the render again. I'm not a vue expert, and looking at issues folks out there are saying to wrap code in <no-ssr> tags. The truth is, most rendering would happen on load anyways, not on the server, as mathjax has to load from the CDN anyways.