Next.js Discord

Discord Forum

Error while deployment

Answered
Maltese posted this in #help-forum
Open in Discord
MalteseOP
I can't figure out what causes this error
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

MalteseOP
here is my route
@Maltese I can't figure out what causes this error
Can you show the error above that is cut?
MalteseOP
yes'
@Maltese Click to see attachment
In your package.json add "postinstall": "prisma generate" in the scripts object, like:
{
  ...
  "scripts": {
    ...
    "postinstall": "prisma generate"
  }
}
Answer
MalteseOP
i made it
It's all in the link in the error
MalteseOP
link?
I didn't see it
where?
@D Trombett Click to see attachment
MalteseOP
Oh thank u
np