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.
This works fine on my local-machine both on normal server and on turbo-pack also.
And this is the server log, on vercel deployment.
[97;46m << query [1;97;46m #1 agent.getAll [0m {
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
}[97;46m << query [1;97;46m #1 agent.getAll [0m {
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.

