W
Waspβ€’11mo ago
Dimitris

(Resolved) Prisma Error on Mac

I have been trying to install the wasp saas template on my M2 mac, and most of it runs smoothly. The only error that persists and crashes the server is something to do with @prisma/client as you can see in the attached picture. Any help would be really appreciated! I'm a beginner in web dev, trying to launch a side project to the web.
No description
16 Replies
miho
mihoβ€’11mo ago
Which commands did you run? What works and what doesn't? Does this error appear after some specific change you made?
Dimitris
DimitrisOPβ€’11mo ago
I first run wasp start db and on another terminal I run wasp start This is where the error occurs
Dimitris
DimitrisOPβ€’11mo ago
No description
Dimitris
DimitrisOPβ€’11mo ago
I have not made any changes to the files, this error occured straight from installation I also run wasp db migrate-dev successfullu successfully* with no errors
miho
mihoβ€’11mo ago
Did you run wasp db migrate-dev? πŸ™‚
Dimitris
DimitrisOPβ€’11mo ago
Yes, I did and did not seem to produce any errors On a similar github issue a person suggested making the following change on schema.prisma: generator client { provider = "prisma-client-js" output = "../node_modules/.prisma/client" } Do you think that's it?
miho
mihoβ€’11mo ago
You shouldn't be doing any changes to the internal files πŸ™‚ let me check a couple of more things
miho
mihoβ€’11mo ago
GitHub
GitHub - wasp-lang/SaaS-Template-GPT
Contribute to wasp-lang/SaaS-Template-GPT development by creating an account on GitHub.
Open SaaS
Free, open-source SaaS boilerplate starter for React & NodeJS.
miho
mihoβ€’11mo ago
@Vinny (@Wasp) did we have this kind of error before? πŸ˜„
Dimitris
DimitrisOPβ€’11mo ago
I'm using opensaas I made the change and it seems to be working now
Dimitris
DimitrisOPβ€’11mo ago
No description
Dimitris
DimitrisOPβ€’11mo ago
I dont know if its a temporary fix though... it even works with output = "../node_modules/.prisma/client"
Vinny (@Wasp)
Vinny (@Wasp)β€’11mo ago
nope @Dimitris can you try running wasp clean and then wasp start again and letting me know if the error still occurs Another thing: - run wasp version and tell me which version you have installed - share the version of wasp defined in your main.wasp file too please πŸ™ 🀝
Dimitris
DimitrisOPβ€’11mo ago
Wasp clean did the trick, now it works! Thank you guys
Vinny (@Wasp)
Vinny (@Wasp)β€’11mo ago
awesome! glad we could help
martinsos
martinsosβ€’11mo ago
Good old turn it off and on πŸ˜„
Want results from more Discord servers?
Add your server