Server Side Exception on Vercel Deployment

I'm getting the following error on vercel deployment using tRPC on Next.js

And this is the server log, on vercel deployment.

 << query  #1 agent.getAll  {
  input: undefined,
  result: TRPCClientError: Unexpected token ; in JSON at position 4
      at TRPCClientError.from (/var/task/.next/server/chunks/9719.js:1:1871)
      at /var/task/.next/server/chunks/9719.js:1:6277
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
    meta: undefined,
    shape: undefined,
    data: undefined,
    [cause]: SyntaxError: Unexpected token ; in JSON at position 4
        at JSON.parse (<anonymous>)
        at parse (/var/task/.next/server/chunks/9719.js:5:4667)
        at /var/task/.next/server/chunks/9719.js:5:3830
        at onChunk (/var/task/.next/server/chunks/9719.js:5:3983)
        at readStandardChunks (/var/task/.next/server/chunks/9719.js:5:4254)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
        at async readLines (/var/task/.next/server/chunks/9719.js:5:4064)
        at async parseJSONStream (/var/task/.next/server/chunks/9719.js:5:3670)
  },
  elapsedMs: 135
}


This works fine on my local-machine both on normal server and on turbo-pack also.
image.png
Was this page helpful?