W
Wasp-langβ€’10mo 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β€’10mo ago
Which commands did you run? What works and what doesn't? Does this error appear after some specific change you made?
Dimitris
DimitrisOPβ€’10mo ago
I first run wasp start db and on another terminal I run wasp start This is where the error occurs
Dimitris
DimitrisOPβ€’10mo ago
No description
Dimitris
DimitrisOPβ€’10mo 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β€’10mo ago
Did you run wasp db migrate-dev? πŸ™‚
Dimitris
DimitrisOPβ€’10mo 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β€’10mo ago
You shouldn't be doing any changes to the internal files πŸ™‚ let me check a couple of more things
miho
mihoβ€’10mo 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β€’10mo ago
@Vinny (@Wasp) did we have this kind of error before? πŸ˜„
Dimitris
DimitrisOPβ€’10mo ago
I'm using opensaas I made the change and it seems to be working now
Dimitris
DimitrisOPβ€’10mo ago
No description
Dimitris
DimitrisOPβ€’10mo ago
I dont know if its a temporary fix though... it even works with output = "../node_modules/.prisma/client"
Vinny (@Wasp)
Vinny (@Wasp)β€’10mo 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β€’10mo ago
Wasp clean did the trick, now it works! Thank you guys
Vinny (@Wasp)
Vinny (@Wasp)β€’10mo ago
awesome! glad we could help
martinsos
martinsosβ€’10mo ago
Good old turn it off and on πŸ˜„
Want results from more Discord servers?
Add your server