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