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
feat: support vue3 #140
base: master
Are you sure you want to change the base?
feat: support vue3 #140
Conversation
Hi @tobiasdiez, thanks for your contribution and love for this project, left some comments as the |
|
||
Vue.use(VueCompositionApi) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://github.com/vueuse/vue-demi#install, should we install()
here?
Also, I played around with this package and found that the |
I continued working on it and now its somehow working, except that all So I was wondering if you actually want to continue supporting vue2 with new updates/fixes, or if it would be okay to completely switch over to vue3. I feel this would definitively ease development. What do you think? |
Fixes #126 by using vue-demi.
I think, in general both the vue 2 and vue 3 version are now working. There are a few strange
vm.watcher is undefined
errors in the browser console for me, where I don't know where they come from. Moreover, the setup is a bit complicated since the vue-cli/rollup setup is deprecated and one should now move to vite. But maybe as a first version this is good enough, and as a second step one could maybe migrate to a cleaner setup (e.g. yarn workspaces, with separate vue2 + vue3 demos, every build by vite etc). What do you think?One other general question would be if you want to continue vue 2 at all, or if one could say that the latest release is the last one supporting vue2, from now on its only vue3.