3

I know, that Vue 3 has breaking changes.

But if the library doesn't use the backward incompatible features, can I use it in Vue 2 and Vue 3 simultaneously? Or I should await the release build specially build for Vue 3?

3
  • Unless you want to manually check if each library uses none of the incompatible features, you might want to wait for a Vue3 build. Commented Sep 12, 2020 at 10:07
  • @Seblor, I asked about theoretical possibility to use libraries build for Vue 2 in Vue 3. Maybe something changed in the build process and libraries built for the previous version can't be used in the next version at all. Commented Sep 12, 2020 at 10:17
  • Does this answer your question? Can Vue2 components be used in Vue3 Commented Sep 24, 2020 at 22:38

1 Answer 1

4

It is likely not a good idea (in production). A number of parts of the api have been changed for example the syntax for directives has been changed, destroyed is now unmounted, scopedSlots have been merged in slots, using an empty vue object as an eventBus has been removed and many other small changes. These can probably all be fixed quickly but until the library maintainers do so you will have issues and warnings from vue2 packages.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.