Skip to content

SSR hydration fails with <Transition appear> and empty content #13394

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

Open
skirtles-code opened this issue May 27, 2025 · 0 comments · May be fixed by #13396
Open

SSR hydration fails with <Transition appear> and empty content #13394

skirtles-code opened this issue May 27, 2025 · 0 comments · May be fixed by #13396
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope:hydration scope: transition

Comments

@skirtles-code
Copy link
Contributor

skirtles-code commented May 27, 2025

Vue version

3.5.15 (older versions seem to have the same problem too)

Link to minimal reproduction

https://play.vuejs.org/#__SSR__eNp9kD1vwyAQhv8Kujmyh3aKrEptlaEd2qrNyIKcq0OCAXFHYinyfw/gfA1RNvQ+z8HLHeDV+2oXEebQMPbeKMYXaYVolkFZ0qydFcp7VKHECZBxLOpJqq9WCpr65gqYAVPr7L/uqg05m1445BkJreu9Nhi+fZ4jCXNRSGbKGLf/LBmHiLNz3q6x3d7JNzTkTMJPQMKwQwkXxip0yBNe/H3hkM4X2LtVNMl+AH+RnIm546S9RbtKtW+80vaj9y6wtt2SFgNjWsfpU7loNsfiS0hrfn/w9Wvdp+q5zEk7wngEt2yIww==

Steps to reproduce

Just open the Playground.

What is expected?

No error, successful hydration.

What is actually happening?

An error is thrown.

Failed to execute 'replaceChild' on 'Node': parameter 1 is not of type 'Node'.

Any additional comments?

I confirmed this also fails in Nuxt, not just in the Playground.

Without the appear prop there's still a hydration problem, but not the explosive error.

The <slot /> isn't required, it also fails if the <Transition> has no content, but I think a <slot /> is more realistic.

@edison1105 edison1105 added scope: transition 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope:hydration labels May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope:hydration scope: transition
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants