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

Failed on initial start (bun) #31

Closed
unpseudocomplique opened this issue Aug 6, 2024 · 4 comments
Closed

Failed on initial start (bun) #31

unpseudocomplique opened this issue Aug 6, 2024 · 4 comments
Assignees
Labels
bug Something isn't working nuxt-module priority/P3

Comments

@unpseudocomplique
Copy link

Hi, thanks for the nuxt module !

I belive this may be linked to the fact that i'm using Bun.

i have this error on the first start after module install :
image

The strange part is that in the error it's written "npx npx". Anyway in bun this should be "bunx":

bunx prisma init --datasource-provider postgresql
Work fine

Maybe https://unjs.io/packages/nypm could help ?

(i have installed node with nvm and desactived it to have the full power of bun with
nvm deactivate)

@unpseudocomplique
Copy link
Author

ho sorry bunx prisma init --datasource-provider postgresql did not give me any error but did nothing !

@ankur-arch
Copy link
Contributor

The strange part is that in the error it's written "npx npx"
Thanks @unpseudocomplique , caught a small bug here 😄 .
#33

Maybe unjs.io/packages/nypm could help ?

This looks interesting 😄 , will take a look at it!

@Ed1ks
Copy link

Ed1ks commented Aug 28, 2024

Sadly prisma does not run with bun, pnpm, nor yarn.
https://stackblitz.com/edit/nuxt-starter-zgouyq

@ankur-arch
Copy link
Contributor

Hey @Ed1ks 👋,

v0.2 is compatible with npm, yarn, and pnpm. However, there’s a known issue with Bun that’s currently being tracked here.

Hi @unpseudocomplique I appreciate you raising this 🙏 ! Please follow this issue for Bun support.

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/P3
Projects
None yet
Development

No branches or pull requests

5 participants