Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Plugin creates broken HTML #453

Open
maartenelgar opened this issue Jun 6, 2021 · 1 comment
Open

Plugin creates broken HTML #453

maartenelgar opened this issue Jun 6, 2021 · 1 comment

Comments

@maartenelgar
Copy link

maartenelgar commented Jun 6, 2021

When I use the plugin my index.html file in dist, my file has a copy mistake. I am unsure whats causing it and I have tried changing alot of the parameters for the plugin aswell as adding .replace(id="app", id="app" data-server-rendered="true"); to the post process and trying to add id="app" to the App.vue file as advised on some stackoverflow threads.

Any ideas what could be driving this?

</body></html>ontrolheight="81" style="margin: 10px; user-select: none; position: absolute; bottom: 95px; right: 40px;"><div class="gmnoprint" controlwidth="40" controlheight="81" style="position: absolute; left: 0px; top: 0px;">

@maartenelgar
Copy link
Author

maartenelgar commented Jun 8, 2021

The issue was caused by hydration failures which I learnt were misuses of html components. When i went through my code and resolved those misuses it resolved the the prerendering issue.

For anyone else struggling with this issue you can read more here:

https://www.sumcumo.com/en/understand-and-solve-hydration-errors-in-vue-js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant