Next.js Discord

Discord Forum

Error while deployment

Answered
Maltese posted this in #help-forum
Open in Discord
Avatar
MalteseOP
I can't figure out what causes this error
Image
Answered by D Trombett
In your package.json add "postinstall": "prisma generate" in the scripts object, like:
{
  ...
  "scripts": {
    ...
    "postinstall": "prisma generate"
  }
}
View full answer

13 Replies

Avatar
MalteseOP
here is my route
Image
Avatar
Can you show the error above that is cut?
Avatar
MalteseOP
yes'
Image
Avatar
In your package.json add "postinstall": "prisma generate" in the scripts object, like:
{
  ...
  "scripts": {
    ...
    "postinstall": "prisma generate"
  }
}
Answer
Avatar
MalteseOP
i made it
Avatar
It's all in the link in the error
Avatar
MalteseOP
link?
I didn't see it
where?
Avatar
Image
Avatar
MalteseOP
Oh thank u
Avatar
np