t3dotgg / chirp

https://xn--uo8h.t3.gg/
393 stars 61 forks source link

The "code" argument must be of type number. Received type string ('SIGTERM') #26

Closed fawadniazi closed 1 year ago

fawadniazi commented 1 year ago

I am getting this wired error on profile page not getting any clues.

node: internal/errors:490 ErrorCaptureStackTrace(err); ^

TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('SIGTERM') at process.set [as exitCode] (node:internal/bootstrap/node:124:9) at process.exit (node:internal/process/per_thread:188:24) at process. (/Users/Documents/code/p/demo-web-app/node_modules/.pnpm/@prisma+client@4.11.0_prisma@4.11.0/node_modules/@prisma/client/runtime/library.js:99:2170) at Object.onceWrapper (node:events:626:26) at process.emit (node:events:511:28) { code: 'ERR_INVALID_ARG_TYPE' }

Node.js v20.1.0

fawadniazi commented 1 year ago

Fixed after upgrading to 4.14.0 (upgrade prisma) https://github.com/prisma/prisma/pull/18899