Open TotomInc opened 4 months ago
The target element of the Teleport must exist at the time the Teleport is mounted. However, with Vue 3.5 the defer option has been added to mount the Teleport after the rendering cycle.
https://blog.vuejs.org/posts/vue-3-5#deferred-teleport
Try experimenting with the option as this may resolve the issue.
This isn't backward compatible and requires a strict peer dependency of vue@^3.5.x. We should also wait for vitepress to be updated with Vue 3.5
EDIT: I've tested with the defer
on the <Teleport>
of the menu, and it doesn't work. The error on vitepress is the same.
When accessing a demo link directly (without going to any other page), the interactive Vue-Select demo doesn't work.
How to reproduce :
However, if I'm going on any other page that doesn't contain a demo (e.g. props docs page), and then come back to a demo page it works fine.
It seems to be a Vitepress error, maybe related to hydration and SSR?Isn't related to Vitepress, seems to be a Vue error: https://github.com/vuejs/core/issues/11230