not found instance
Version
3.0.3
Reproduction link
https://github.com/yoonasy/vue-resize
Steps to reproduce
No instance found for embedded use. This is Fork, I plan to migrate to vue3
cd vue-resize && yarn install && yarn build
cd docs-src && yarn install && yarn run serve
Via npm npm install vue3-resize
it is work.
resolved
What is expected?
ok
What is actually happening?
Thrown warning, code break
runtime-core.esm-bundler.js?892f:38 [Vue warn]: onMounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.
warn @ runtime-core.esm-bundler.js?892f:38
runtime-core.esm-bundler.js?892f:38 [Vue warn]: onBeforeUnmount is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.
warn @ runtime-core.esm-bundler.js?892f:38
runtime-core.esm-bundler.js?5c40:38 [Vue warn]: Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.
at <ResizeObserver onNotify=fn<handleResize> >
at <App>