Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRR hydration throws error when <transition> component has a comment in it #5351

Closed
AaronBeaudoin opened this issue Feb 1, 2022 · 0 comments

Comments

@AaronBeaudoin
Copy link

Version

3.2.29

Reproduction link

https://github.com/AaronBeaudoin/vite-vue-ssr-bug-repr/tree/transition-comment

Steps to reproduce

  1. npm i to install dependencies then npm run dev to run.
  2. In your browser go to http://localhost:3001. Note the error in the console.
  3. In your code editor go to src/App.vue.
  4. Remove the comment and reload the page. The error should be gone.

What is expected?

Hydration succeeds without errors.

What is actually happening?

The comment in the <transition> causes a hydration mismatch error:

[Vue warn]: Hydration children mismatch in <div>: server rendered element contains more child nodes than client vdom. 
  at <Layout> 
  at <LayoutModal > 
  at <App>
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants