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

Version 3 compatible #16

Open
jonathan-martz opened this issue Nov 17, 2021 · 8 comments
Open

Version 3 compatible #16

jonathan-martz opened this issue Nov 17, 2021 · 8 comments

Comments

@jonathan-martz
Copy link

Is it compatible to Version 3 of VueJs ?

@jonathan-martz
Copy link
Author

For me its working but, i get an error because it cant write $plausible.
I will update the Issue tomorow with the error of the console log.

@jonathan-martz
Copy link
Author

The Error Message is:

Uncaught TypeError: Vue.prototype is undefined

When i remove this Line in the Vue Plugin, everything is fine. Page is working.
Vue.prototype.$plausible = plausible;

@YanDevDe
Copy link

Added (temporary) Vue 3 support over here: #17

Not merge worthy yet since some typings are being ignored (//@ts-ignore) - but it should be working fine. Any pull request at my side is welcome.

@moritzsternemann
Copy link
Owner

Thanks for opening the issue! Vue3 support is definitely a priority and I plan to support is as soon as possible. Unfortunately, I'm very busy until mid February and won't have time to work on this until then.

Thanks @YanDevDe for the draft PR! I'm happy to provide feedback and get this merged mid February as well.

@YanDevDe
Copy link

The reason why its in draft is because for Vue 3 support it should be rather in other branch, perhaps called "next".

Having 2 different Vue plugins in module/package may just waste spaces. (Unless of course you want to have both of them in a single module)

I created the draft pull request to get better understanding / quicker implementation. 👍

Thanks for the update!

@ej2
Copy link

ej2 commented Jun 13, 2022

Is VueJS 3 support still being worked on?

@jonathan-martz
Copy link
Author

I found a way its working quite well.
https://www.oeconomicas.com/posts/2021-08-13-vue-plausible/

@nimit2801
Copy link

I found a way its working quite well. https://www.oeconomicas.com/posts/2021-08-13-vue-plausible/

This link was not found

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

5 participants