The to of teleport specifies that the div of the parent of the Vue component reports an error
Version
3.0.5
Reproduction link
https://github.com/mayuxian/vite-issue-sample/blob/master/src/App.vue
Steps to reproduce
- yarn create @vitejs/app vite-issue-sample
- create "modal-button" component,
- App.vue import "modal-button",as below
Tooltips with Vue 3 Teleport
What is expected?
1.no error 2.If it is forbidden,please give a friendly tips
What is actually happening?
runtime-dom.esm-bundler.js:30 Uncaught (in promise) TypeError: Cannot read property 'parentNode' of null at parentNode (runtime-dom.esm-bundler.js:30) at patchBlockChildren (runtime-core.esm-bundler.js:4006) at Object.process (runtime-core.esm-bundler.js:4990) at patch (runtime-core.esm-bundler.js:3715) at patchBlockChildren (runtime-core.esm-bundler.js:4010) at processFragment (runtime-core.esm-bundler.js:4065) at patch (runtime-core.esm-bundler.js:3705) at componentEffect (runtime-core.esm-bundler.js:4278) at reactiveEffect (reactivity.esm-bundler.js:42) at callWithErrorHandling (runtime-core.esm-bundler.js:154)
Should be the same as https://github.com/vuejs/vue-next/issues/2015, tracked there.