Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use it in Vue3 project #107

Closed
wondrahy opened this issue Mar 28, 2021 · 5 comments
Closed

How can I use it in Vue3 project #107

wondrahy opened this issue Mar 28, 2021 · 5 comments

Comments

@wondrahy
Copy link

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)

@Luster-lyl
Copy link

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)

@kirillmurashov
Copy link
Owner

I'm working on it, a vue3 compatible version will be released today or tomorrow

@kirillmurashov
Copy link
Owner

kirillmurashov commented Apr 7, 2021

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

@Luster-lyl
Copy link

Thank you so much!
It's so helpful !

@wondrahy
Copy link
Author

wondrahy commented Apr 10, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants