Creative Software Engineer from 🇻🇪 living in Barcelona, Spain.
Developer Relations Engineer at Storyblok
Author of TresJS
Content Creator @AlvaroDevLabs
Former founder of Porsche Digital Bcn.
Yes, you have to update vue to 3.x version, and all related dependencies. This article covers adapting the installation of the plugin to the new standard in vue 3.
Composition API is purely additive, so the library would work exactly the same if use with the Options API. It does depends if they're more breaking changes other than the installation added by the authors. In that case they should be reflected in a proper "Migration Guide" in the documentation.
I hope this clarifies your doubts. If you have any other, feel free to ask.
Thanks for your reply. This reason I ask is that I'm planning on making a package and from what I have read, I can just go ahead and use the new standard and it will work for both Vue 2 and Vue 3, yeah?. This is what I need clarification on.
Since Vue.component isn't available for plugin in Vue 3, if I use app.component as you showed in the article and someone using Vue 2.x.x installs my package and then call it with Vue.use(packageName) in their main.js, will this process work?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello Emmanuel, thanks for reaching out
I hope this clarifies your doubts. If you have any other, feel free to ask.
Happy coding.
Thanks for your reply. This reason I ask is that I'm planning on making a package and from what I have read, I can just go ahead and use the new standard and it will work for both Vue 2 and Vue 3, yeah?. This is what I need clarification on.
Since
Vue.component
isn't available for plugin in Vue 3, if I useapp.component
as you showed in the article and someone using Vue 2.x.x installs my package and then call it withVue.use(packageName)
in theirmain.js
, will this process work?