Prisma problem

I have a project that is being tested, it is a monorepo, for the db I use prisma, in package.json I have the scripts that I should, but in the build it says the following msg

This “postinstall” is the script I mentioned, it even comes from Prisma’s own documentation being used with NextJS

Because of this the build fails, even though I need it to work, because without it I have no DB

Please, help me!!!

I don’t want to leave Vercel, but it’s getting difficult, my roadmap is tight

Thanks.

Hey,

have you got chance to review our prisma template: Find your Template ? This should help you to get started.

Ok, I’ll take a look, but it turns out that this is the first time I’ve had this problem with the prism on the Vercel, it’s not my first project, but I’ll take a look.

You would likely need to override build command with:

  "scripts": {
    "dev": "prisma generate && next dev",
    "build": "prisma generate && prisma db push && prisma db seed && next build",
    "start": "next start",
    "lint": "next lint"
  },

Yes, I did that but it continues

No answer???

If you see prisma: command not found errors during your deployment to Vercel, you are missing prisma in your dependencies. By default, prisma is a dev dependency and may need to be moved to be a standard dependency.

1 Like

Ah, that makes sense, I’ll try.

Thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.