-
Notifications
You must be signed in to change notification settings - Fork 22
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
installing deps from a layer contains a pnpm version mismatch #156
Comments
Hi. This is somehow similar to #128 where pnpm picks workspace constraints. I think a simple workaround (and better layer structure) if you cannot get rid of different lockfiles, is that in your layer, use a sub-directory ( |
Thanks, idk why I didn't think of it. Will test it as soon as I get back. (This indeed simplifies the development of it, I guess I'm too used to modules 🙄) If I'm not mistaken this shouldn't have any problem when referencing a specific commit like |
Ok, first off thanks for the tip of moving it into a sub-dir (it was useless to pull dev files into production), but I'm not fully getting the expected result: The setup to debug this is a
Just as an experiment I did test with bun but the same result is obtained EDIT
|
This comment was marked as off-topic.
This comment was marked as off-topic.
I suspect some of the things you are mentioning are not directly c12 issues (or this issue at least) anymore.. Do you think you can help on making a c12-only reproduction for pnpm issues and we can track others via nuxt repo maybe? (if it is hard no worries) |
Indeed the type issue wasn't related, sorry for the spam.
Indeed I'm not sure where to start in creating a c12-only (or any unjs-only for what matters) repro, since I started learning js/ts and package managers only with Nuxt. BUT I'm willing to learn on creating such repro and help debug this.
|
Ok I can double confirm my latest message by using the component inspector of the nuxt's devtools:
Hope to not say something stupid, but should the second one be like: |
pnpm uses |
yes it seems so, just checked with |
Ok I revert back some of my understandings of this issue:
This suggests that the module's deps aren't loaded in the correct order? (testing with both pnpm and bun, so I would say that package managers have nothing to do) @pi0 please tell me if I'm spamming too much, but the more I go on with debugging (and backlogging it here) the more I'm starting to think:
Should I close this one and reopen it in the nuxt repo? I'll wait for orders 🫡 |
@ineshbose and @BobbieGoede, sorry for the ping, could this be somewhat related to the discussion you guys were having on discord the other day? |
@sandros94 |
@BobbieGoede the layer seems to be https://github.com/Sandros94/ui, and Lets discuss this on Discord right now if you're all on? |
Thanks for all the details and followups ❤️ I think we can safely track the c12 relevant part from #128 If i could help on any of Nuxt relevant issues (or discord!) please ping me 🙏🏼 |
Environment
9.0.5
v20.11.1
Reproduction
Stackblitz isn't letting me extend from a github repo, but this is the layer I'm extending from, with this
nuxt.config.ts
in the destination being:Describe the bug
The source
pnpm-lock.yaml
is version9.0
, but the c12 provided one islockfileVersion: '6.0'
.Additional context
Testing out Nuxt compatibility
4
with[email protected]
I do get the error in the console, but it seems to be installing the packages correctly.Logs
The text was updated successfully, but these errors were encountered: