How can I use it in Vue3 project
Closed this issue · 5 comments
When I use it in Vue3 project, there are some warnings and errors as follows. How can I use it in Vue3 project?
_[Vue warn]: beforeDestroy
has been renamed to beforeUnmount
.
[Vue warn]: Property "$createElement" was accessed during render but is not defined on instance.
[Vue warn]: Property "_self" was accessed during render but is not defined on instance.
[Vue warn]: Unhandled error during execution of render function
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next
Uncaught (in promise) TypeError: Cannot read property 'c' of undefined
at Proxy.render (vue-google-charts.common.js?757f:formatted:350)
at renderComponentRoot (runtime-core.esm-bundler.js?5c40:696)
at componentEffect (runtime-core.esm-bundler.js?5c40:4035)
at reactiveEffect (reactivity.esm-bundler.js?a1e9:42)
at effect (reactivity.esm-bundler.js?a1e9:17)
at setupRenderEffect (runtime-core.esm-bundler.js?5c40:4018)
at mountComponent (runtime-core.esm-bundler.js?5c40:3976)
at processComponent (runtime-core.esm-bundler.js?5c40:3936)
at patch (runtime-core.esm-bundler.js?5c40:3547)
at mountChildren (runtime-core.esm-bundler.js?5c40:3736)
I have the same problem about how to use this in Vue3 project, and some errors are as follows:
index.js?3b58:1 Uncaught (in promise) TypeError: Cannot read property '_c' of undefined
at Proxy.n (index.js?3b58:1)
at renderComponentRoot (runtime-core.esm-bundler.js?5c40:846)
at componentEffect (runtime-core.esm-bundler.js?5c40:4275)
at reactiveEffect (reactivity.esm-bundler.js?a1e9:42)
at effect (reactivity.esm-bundler.js?a1e9:17)
at setupRenderEffect (runtime-core.esm-bundler.js?5c40:4258)
at mountComponent (runtime-core.esm-bundler.js?5c40:4217)
at processComponent (runtime-core.esm-bundler.js?5c40:4177)
at patch (runtime-core.esm-bundler.js?5c40:3788)
at mountChildren (runtime-core.esm-bundler.js?5c40:3970)
I'm working on it, a vue3 compatible version will be released today or tomorrow
The component code has been greatly improved,
I have released version 1.5.1 for Vue2 and version 2.0.0 for Vue3
Please use "npm i -s vue-drag-resize@next" for use in Vue3
The vue3 branch has completely rewritten the demo using the composition API. For examples of how to use it, go there
Thank you so much!
It's so helpful !