SWE-rebench leaderboard — July 2026 task
harbor run -t ibragim-badertdinov/vuejs__core-14877harbor download ibragim-badertdinov/vuejs__core-14877Teleport + Suspense: unmount crashes on pending teleport with component child (regression since 3.5.31)
3.5.34
https://github.com/pont1s/vue-teleport-unmount-crashes
pnpm dev
TypeError: Cannot read properties of null (reading 'type') in the consolepnpm test
The repo also contains three Vitest tests in tests/teleport-unmount.test.js
When a inside a is unmounted before its mount can run, Vue should remove it cleanly. This worked correctly in 3.5.30.
In 3.5.31..3.5.34, unmounting such a teleport throws:
TypeError: Cannot read properties of null (reading 'type')
at unmountComponent (runtime-core.cjs.js)
at unmount
at Object.remove (TeleportImpl.remove)
at unmount
at unmountChildren
at unmount
at unmountComponent
at unmount
at Object.resolve (Suspense)
System:
OS: macOS 26.3.1
CPU: (8) arm64 Apple M1
Memory: 102.19 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.15.0 - /Users/user/.local/state/fnm_multishells/14407_1779493498078/bin/node
npm: 11.12.1 - /Users/user/.local/state/fnm_multishells/14407_1779493498078/bin/npm
pnpm: 11.1.3 - /Users/user/.local/state/fnm_multishells/14407_1779493498078/bin/pnpm
Browsers:
Chrome: 148.0.7778.179
Safari: 26.3.1
npmPackages:
vue: 3.5.34 => 3.5.34
This is a continuation of the regression chain that started in 3.5.31:
pendingMounts so teleports defer their mount when parentSuspense.pendingBranch is set. This is what created the situation where a teleport's children can have vnode.component === null.pendingMount check shown above. That gates DOM removal of element children, not the unmountComponent(null, …) call on component children.pendingMounts.has(vnode) guard, but only in moveTeleport. The TeleportImpl.remove path was not touched, so 3.5.33 and 3.5.34 still crash.No new interfaces are introduced.