Skip to content
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

Package manager cannot get resolved when using Nuxt Layers #29

Open
Dobefu opened this issue Aug 5, 2024 · 1 comment · May be fixed by #30
Open

Package manager cannot get resolved when using Nuxt Layers #29

Dobefu opened this issue Aug 5, 2024 · 1 comment · May be fixed by #30
Assignees
Labels
bug Something isn't working nuxt-module priority/P0

Comments

@Dobefu
Copy link
Contributor

Dobefu commented Aug 5, 2024

This is a continuation of #20. I'll provide a summary of the issue:

When using Nuxt layers and Node/PNPM workspaces, no lockfiles will be present in the directory of the Nuxt layer. This causes nuxt-prisma to fall back to npm. This becomes a problem when using pnpm and its workspaces functionality, since npm has no idea what the heck it should do.

I imagine the solution be twofold:

  1. Look at the actual project root for the lockfiles
  2. Throw a warning when the package manager falls back to npm, since something is not right at that point

I have a reproduction repository here: https://github.com/Dobefu/nuxt-prisma-pnpm-workspaces

Also, I intend to write a fix for this, but I'll have some lunch first.
🥪 <- This is what my lunch will look like

@ankur-arch
Copy link
Contributor

Thanks @Dobefu! We should consider closing #31 while working on this.

@ankur-arch ankur-arch added the bug Something isn't working label Aug 9, 2024
@ankur-arch ankur-arch self-assigned this Aug 9, 2024
@mhessdev mhessdev added the nuxt-module label Aug 9, 2024 — with Linear
Dobefu added a commit to Dobefu/nuxt-prisma that referenced this issue Aug 13, 2024
Dobefu added a commit to Dobefu/nuxt-prisma that referenced this issue Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working nuxt-module priority/P0
Projects
None yet
4 participants