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

feat: support vue3 #140

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

feat: support vue3 #140

wants to merge 3 commits into from

Conversation

tobiasdiez
Copy link

@tobiasdiez tobiasdiez commented Sep 26, 2022

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.

@jamesxwang
Copy link
Owner

jamesxwang commented Oct 6, 2022

Hi @tobiasdiez, thanks for your contribution and love for this project, left some comments as the npm run serve threw some errors in the browser console and seems the demo is broken


Vue.use(VueCompositionApi)
Copy link
Owner

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?

@jamesxwang
Copy link
Owner

Also, I played around with this package and found that the vm.watcher error you mentioned comes from the watch function. Still investigating

@tobiasdiez
Copy link
Author

I continued working on it and now its somehow working, except that all reactive things are actually static in vue3...

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?

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

Successfully merging this pull request may close these issues.

Any VueJs3 version ?
2 participants