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

Is this compatibile with Vue 3 and Vuepress? #33

Open
emnlmn opened this issue Jul 27, 2021 · 4 comments
Open

Is this compatibile with Vue 3 and Vuepress? #33

emnlmn opened this issue Jul 27, 2021 · 4 comments

Comments

@emnlmn
Copy link

emnlmn commented Jul 27, 2021

I have an error when trying to .use the library in Vuepress 2.0 (using Vue 3):

Uncaught (in promise) TypeError: Cannot read property '$gb' of undefined
    at Object.e [as install] (vuetimeline.esm.js?7cf2:1)
    at Object.use (runtime-core.esm-bundler.js?5c40:4022)
    at eval (clientAppEnhance.ts?6947:5)
    at createVueApp (app.js?c6d7:132)

Is this supported?

@LeCoupa
Copy link
Owner

LeCoupa commented Jul 27, 2021

Hello, I have never tested it with Vue 3. I don't know how it will behave. 🙄

@ericuldall
Copy link

For anyone else that comes here looking for vue 3 support, this won't work.
There's at least 1 problem, vue3 no longer support assigning globals to Vue.prototype.$var
Stackoverflow explaining the new way to do this: https://stackoverflow.com/a/65184375/2742481

I'm not certain if that would be the only issue but at first glance that would need to be changed to resolve the error mentioned by OP here.

@MarvinKweyu
Copy link

@LeCoupa @ericuldall

While Eric's comment leads in the right direction, this will not work either. Has anyone successfully integrated this in whatever hacky way? I have tried a bunch of libraries so far and no damn luck.

@ericuldall
Copy link

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

4 participants