Hydration mismatches in simple SSR example #12087
Replies: 1 comment
-
I was able to get it working using a proper Vue component instead of the inline template with data combination |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm currently figuring out how to get a simple SSR example app running using Vue's
renderToString
-method since it seems very simple. However after "upgrading" the example https://vuejs.org/guide/scaling-up/ssr.html to a real build using vite, I'm not able to get the hydration correctly. Does anyone have an idea where it is going wrong?I tried to debug the hydration mismatch but I only saw that at some point Vue seems to render a
v-cmt
(which I guess is an empty comment) component but I don't know why.I even tried to set
VUE_PROD_HYDRATION_MISMATCH_DETAILS
(see https://vuejs.org/api/compile-time-flags#VUE_PROD_HYDRATION_MISMATCH_DETAILS) flag but it does not seem to have an effect on the error message.Reproduction repo: https://gitlab.com/Llois41/gitlab-merge-bot
I'm thankful for any advice on this.
Beta Was this translation helpful? Give feedback.
All reactions