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