-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Can't use Vue 2 library in Vue 3 #237
Comments
You need to change your Vite config to use I'm guessing that you are following Vue's migration build? It isn't very clear in the instructions that you need to change it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have developed my library using Vue 2.7 and vue-demi with Vite. I am able to consume the library in Vue 2.7 and everything is working fine but not in Vue 3.
As soon as I use any of the components from my library, I get below errors in browser console and my components are not instantiated/mounted.
It seems Vue 3 does not work well with Vue 2. But then what is the point of using vue-demi?
The workaround that I have been trying is to publish two separate packages for each version with below scripts:
Now when I try to build for Vue 2, it throws below error:
Please let me know what I should do.
The text was updated successfully, but these errors were encountered: