# Errors when deploying to Vercel - Next.js Projects: Build an Issue Tracker

**URL:** <https://forum.codewithmosh.com/t/errors-when-deploying-to-vercel-next-js-projects-build-an-issue-tracker/24695>\
**Category:** Next.js\
**Created:** [January 22, 2024, 10:57am UTC](https://forum.codewithmosh.com/t/errors-when-deploying-to-vercel-next-js-projects-build-an-issue-tracker/24695 "2024-01-22T10:57:52Z")\
**Posts on this page:** 1\
**Page:** 1

<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:57am UTC](https://forum.codewithmosh.com/t/errors-when-deploying-to-vercel-next-js-projects-build-an-issue-tracker/24695/1 "2024-01-22T10:57:52Z")

</div>

I am having error when deploying the app as below image

 ![Screenshot 2024-01-22 at 10.54.58 AM](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/7b415f466ed33dc8cf12d2e8e148aa8798129120.png)

And on database on planetscale in the migrations table i see

below is my schema

```auto
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "mysql"
  url = env("DATABASE_URL")
  relationMode = "prisma"
}

model Issue {
  id Int @id @default(autoincrement())
  title String @db.VarChar(255)
  description String @db.Text
  Status Status @default(OPEN)
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  assignedToUserId String? @db.VarChar(255)
  assignedToUser User? @relation(fields: [assignedToUserId], references: [id])
}

enum Status {
  OPEN
  IN_PROGRESS
  CLOSED
}

model Account {
  id String @id @default(cuid())
  userId String
  type String
  provider String
  providerAccountId String
  refresh_token String? @db.Text
  access_token String? @db.Text
  expires_at Int?
  token_type String?
  scope String?
  id_token String? @db.Text
  session_state String?
  user User @relation(fields: [userId], references: [id], onDelete: Cascade)
  @@unique([provider, providerAccountId])
}

model Session {
  id String @id @default(cuid())
  sessionToken String @unique
  userId String
  expires DateTime
  user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}

model User {
  id String @id @default(cuid())
  name String?
  email String? @unique
  emailVerified DateTime?
  image String?
  accounts Account[]
  sessions Session[]
  assignedIssues Issue[]
}

model VerificationToken {
  identifier String
  token String @unique
  expires DateTime

  @@unique([identifier, token])
}

```
