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

Resolve issues when installing the Prisma client in a PNPM workspace using Nuxt layers #30

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Dobefu
Copy link
Contributor

@Dobefu Dobefu commented Aug 5, 2024

This PR will fix #29

Copy link

vercel bot commented Aug 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuxt-prisma ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 13, 2024 2:19pm

@Dobefu
Copy link
Contributor Author

Dobefu commented Aug 5, 2024

Please note: on this version of the PR, installation will happen in the wrong Nuxt layer. A workaround for now is to manually install the client and set the installPrismaClient option to false.
I do not have much time to look into this further for a couple of days, so I hope this is a helpful start at least.

@Dobefu
Copy link
Contributor Author

Dobefu commented Aug 13, 2024

I'm back!

@ankur-arch I would like to add two configuration options, but I'd like your thoughts on it:

I think especially the second option would benefit a lot of people, since I don't see a way that we can detect it in the code in a reliable and performant manner.

@ankur-arch
Copy link
Contributor

Thanks @Dobefu! I'll check on this the next week as I'm on limited availability this week.

@husayt
Copy link

husayt commented Nov 13, 2024

@ankur-arch will be really nice if this could be checked. Many users of nuxt-prisma are using layers and if already there is a solution to this issue, why not to use it.

@husayt
Copy link

husayt commented Nov 14, 2024

@ankur-arch will be really nice if this could be checked. Many users of nuxt-prisma are using layers and if already there is a solution to this issue, why not to use it.

Just to check if the issue I had was related to this and not something else, I switched to npm and it worked. So it was definetely caused by lack of pnpm support. Switching to npm can be a workaround for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package manager cannot get resolved when using Nuxt Layers
3 participants