# Deploying to vercel error

**URL:** <https://forum.codewithmosh.com/t/deploying-to-vercel-error/23319>\
**Category:** Next.js\
**Created:** [October 28, 2023, 9:17am UTC](https://forum.codewithmosh.com/t/deploying-to-vercel-error/23319 "2023-10-28T09:17:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdule](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/abdule/32/7192_2.png) [@abdule](https://forum.codewithmosh.com/u/abdule)\
**Post date:** [October 28, 2023, 9:17am UTC](https://forum.codewithmosh.com/t/deploying-to-vercel-error/23319/1 "2023-10-28T09:17:47Z")

</div>

Error: Command “prisma generate && prisma migrate deploy && next build” exited with 1

iam facing this error please help me to solve it ?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/b/b84ae4f90015f9fc080529c37bf765a71b636761.png)

---

<div class="post-metadata">

**Author:** ![Programmist](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/programmist/32/7006_2.png) [@Programmist](https://forum.codewithmosh.com/u/Programmist)\
**Post date:** [October 28, 2023, 5:45pm UTC](https://forum.codewithmosh.com/t/deploying-to-vercel-error/23319/2 "2023-10-28T17:45:55Z")

</div>

The pris.ly link in the error output leads to this page talking about failed migrations. [Migration troubleshooting in development](https://www.prisma.io/docs/guides/migrate/developing-with-prisma-migrate/troubleshooting-development#failed-migrations)

From the page:

> A migration might fail if:
> 
> - You [modify a migration before running it](https://www.prisma.io/docs/guides/migrate/developing-with-prisma-migrate/customizing-migrations) and introduce a syntax error
> - You add a mandatory (`NOT NULL`) column to a table that already has data
> - The migration process stopped unexpectedly
> - The database shut down in the middle of the migration process

Are any of those a possibility? For instance, have you manually edited any migration files? Or have you “made a change to a Prisma schema that cannot be applied to a database with data (for example, a mandatory column in a table with data)?”

---

<div class="post-metadata">

**Author:** ![arthathagary](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@arthathagary](https://forum.codewithmosh.com/u/arthathagary)\
**Post date:** [October 30, 2023, 7:42am UTC](https://forum.codewithmosh.com/t/deploying-to-vercel-error/23319/3 "2023-10-30T07:42:49Z")

</div>

> [@abdule](#):
>
> iam facing this error please help me to solve it ?

The same issue for me, Are you solved this?

---

<div class="post-metadata">

**Author:** ![paulorinze](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@paulorinze](https://forum.codewithmosh.com/u/paulorinze)\
**Post date:** [January 22, 2024, 10:59am UTC](https://forum.codewithmosh.com/t/deploying-to-vercel-error/23319/4 "2024-01-22T10:59:25Z")

</div>

I also have the same issue… any one was abble to solve it? i have researching the solution for about 4 hrs and cant find…

---

<div class="post-metadata">

**Author:** ![paulorinze](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@paulorinze](https://forum.codewithmosh.com/u/paulorinze)\
**Post date:** [January 22, 2024, 11:00am UTC](https://forum.codewithmosh.com/t/deploying-to-vercel-error/23319/5 "2024-01-22T11:00:51Z")

</div>

The only modification i did was Deleting the migration folder and and add “relationMode =“prisma”” as show in Mosh’s video
