Prisma client generation failed
Hello ! I have problem when i make wasp start or wasp db migrate , i have "prisma client generation failed with exit code:1" can you helpe me ? please
4 Replies
Hi @MonsieurAki. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, based on the knowledge sources, there are a few things you could try:
1. Run
wasp clean
and then wasp start
again. This can help resolve issues related to the Prisma client initialization (source (https://github.com/wasp-lang/wasp/issues/427)).
2. If you're running an existing project for the first time, you might need to run wasp db migrate-dev
before wasp start
. This is because Prisma might need to generate some client code based on your database schema (source (https://github.com/wasp-lang/wasp/issues/248)).
3. Check if there's a package.json
file above your Wasp project. If there is, the Prisma version from that file will be used, which might cause conflicts (source (https://github.com/wasp-lang/wasp/issues/787)).
If none of these suggestions work, I recommend checking the Wasp Github issues (https://github.com/wasp-lang/wasp/issues) for similar problems or posting a new issue there.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @MonsieurAki, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?Hi @MonsieurAki. Did you try running
wasp clean
?Hi, yes but it doesn’t work, I try another wasp because i use ia wasp
Ok, let me know if that worked out 🙂
Hey @MonsieurAki, any luck here?