-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Impossible to have Nuxt 2 and Nuxt 3 in same monorepo: Nuxt 3 can't do postinstall #12331
Comments
Hey, I dont think that this can be fixed as Nuxt 2 and Nuxt 3 have several different dependencies (including different versions of libraries). Because of that fixing this might be very difficult (not to mention that it is a rather not common use case 😉) I would recommend to have apps in a separate repositories as this can cause even more issues later on. |
This doesn't look like a Nuxt issue to me. I believe you will need to configure your dependency hoisting settings within pnpm: https://pnpm.io/npmrc#dependency-hoisting-settings. |
OK I will try to configure pnpm. Thanks for tips :-) |
Mmmh i don't understand how can i correctly set the hoisting.. |
@Suniron did you fixed? I'm with this same problem, i cannot use nuxt-2 and nuxt-3 in the same project using Pnpm 😢 |
No, it's not fixes yet. Currently, my nuxt 3 app is in Dev only I can't build it but I can build and Dev on Nuxt bridge projet (I migrate my nuxt 2 to nuxt bridge since I got this problem). I dont need the production build before 2/3 next months, but I hope to find a solution soon 🤞 |
I have the same issue, haven't found a configuration that work yet. If anyone has a way to accomplish this; please do tell |
I created this discussion in pnpm, maybe someone helps! |
Thanks ! I'm always stucked with this problem.. |
@danielroe I'm also running into this issue with Yarn, so I think this might be a nuxt rather than pnpm issue. Even when the correct versions of |
@steffendybvik @Suniron, did you find a way to fix this problem? |
Not really, I had to put my Nuxt Bridge projet into a ''standalone'' folder (inside my monorepo to have all my apps in the same git project). But I can't use packages :-( |
Environment
Windows 11 > WSL2 Ubuntu
Linux
v18.11.0
2.15.8
1.0.0
pnpm@7.14.2
webpack
-
-
-
Reproduction
Minimal reproduction here: https://github.com/Suniron/monorepo-nuxt2-nuxt3-problem
Try to install with
pnpm install
in root folderDescribe the bug
Hey,
I'm working on a monorepo (with turborepo) of a big project using Nuxt 2 as web interface.
I need to create a second web app which using Nuxt 3 but i can't start this app in the monorepo, i got this error when i try to install the project (
pnpm i
at root):I think the problem is because the root node_modules is shared.
I just pushed a simple version of my project here which reproduce the problem:
https://github.com/Suniron/monorepo-nuxt2-nuxt3-problem
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: