Skip to content

Teleport fails on ssr if to is undefined on mount. #13710

@xvaara

Description

@xvaara

Vue version

3.5.18

Link to minimal reproduction

https://play.vuejs.org/#__SSR__eNqFUk1Lw0AQ/SvjXqogCVIEKbX4gQc9qKjHBUmTSV272V12J22l9L87u2mjSKm32XnvTd6bzFpcO5ctWhQjMQ6lV44gILVuIo1qnPUEa/BYwwZqbxsYMHUgTWlNIKDCz5DgMhKOW1NhrQxWJ9LkOQQGSZkZLBV9wNRWX7C0fh4SuEc+iJQBa8d5Z4MN8IOwcbog5BfAuFKLVHA5bYmsgatSq3J+KUU/rBskBUxiMc474r+y3r4Uk1T/VRJqTPsYke2F/JlRpUIx1Vhx86jv8gD0WymLgyvMpLaWw8VqOzLfzezS5V282O5Di1NBgddVq1n2Gazh37SOZClK2zil0T85UrxOKUaQkIgVWtvlQ+qRb/F01y8/sJzv6X+GVexJ8ewxoF+gFD22ixThu9dHXHHdg42tWs3sA+ALBqvb6LGj3fB22fYvXnJ7n46ND+Yt3K0ITdiFikYjc5P4UvAB3h6I/mN3mA2TTpoNb/F9gT7O5AUOs/Ps7EJsvgGzif1Q

Steps to reproduce

Click any of the buttons when ssr is on and preview is refreshed

What is expected?

No error, content displayed or moved to the correct dom postition

What is actually happening?

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

System Info

Any additional comments?

Filed this originally as #13549 but is was mistakenly marked as duplicate of #11230

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions