LeCoupa / vuetimeline

🕵️‍♀️🕵️‍♂️ One easy-to-use component for Vue.js to build beautiful responsive timelines.
https://www.growthbunker.dev/vuetimeline
MIT License
346 stars 44 forks source link

Is this compatibile with Vue 3 and Vuepress? #33

Open emnlmn opened 3 years ago

emnlmn commented 3 years ago

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 commented 3 years ago

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

ericuldall commented 1 year ago

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 commented 9 months ago

@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 commented 9 months ago

I ended up just rebuilding it, you can see it on my profile https://ericuldall.com/history.html https://github.com/ericuldall/portfolio/blob/683833442a6b8d3212d8565d315bff45fef4c8ca/history.md?plain=1#L1-L175