-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Uses the wrong vue version in monorepo #242
Comments
I think I am facing a critical issue similar to this but the opposite way round. If i edit the Pinia project and change So I suspect that Vue version support switching broke in this lib ats some point in the past week? I think this ticket is the same issue here: #230 which is the exact error I am facing. |
I'm having a similar issue. I'm looking at the line
and a bit confused how this would ever work in Vue 3, though! In Vue 3 there is no default export so
|
After some digging my own issue is related to the postinstall hook on vue-demi having run at some point and decided that the project was a Vue 2 project. Similarly to @ESP-Marc , this is a monorepo with both versions of vue present. |
I am in the process of upgrading my monorepo from Vue 2 to Vue 3. After reading @thedamon 's answer, I tried |
I have sorted this issue by adding a post-install to our packages in a pnpm workspace.
This way after installation pnpm will run the vue-demi-fix and the correct vue version will be detected. Hope it helps 🤞 |
Background
I have a monorepo using yarn workspaces that has a mix of both vue2 and vue3 applications.
I have added both vue and vue-demi to "nohoist" to avoid it being installed in the root node_modules.
Expected behavior
When using a package that implements
vue-demi
it should point to the correct vue version.Actual behavior
All vue-demi always point to the vue2 version even if it's installed in a vue3 apps node_modules.
Screenshot
Minimal reproduction repo
https://github.com/sacki5/vue-demi-faulty-version-repro/tree/main
I am thankful for any help or insight in how to solve this.
The text was updated successfully, but these errors were encountered: