Library uses vue-demi with vue3, app uses vue2 but still vue-demi detects vue3 #122
Unanswered
pareshchouhan
asked this question in
Q&A
Replies: 3 comments 1 reply
-
You need to externalize |
Beta Was this translation helpful? Give feedback.
0 replies
-
@antfu , it is externalised, I checked the source code in the built files.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I added it to webpack configuration as well under externals, and still same results :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using vue-cli-service to compile my library which uses vue-demi and I develop the code using vue 3.2.X.
When I import the library in a vue2 project
vue-demi
detects vue3 is running instead of vue2.This is a console log of following in my library, which I imported in my application.
Here's a repo to reproduce it
https://github.com/pareshchouhan/vue-demi-test
In my library only thing I use vue-demi is for importing defineComponent
It crashes inside the library code when calling
defineComponent
Beta Was this translation helpful? Give feedback.
All reactions