DataCloneError: (value) => {
return new Date(value).toISOString();
} could not be cloned.
at new Worker (node:internal/worker:235:17)
at createWorker (/Users/olivier/Projects/create-app/create-fastify-backend/node_modules/thread-stream/index.js:50:18)
at new ThreadStream (/Users/olivier/Projects/create-app/create-fastify-backend/node_modules/thread-stream/index.js:209:19)
at buildStream (/Users/olivier/Projects/create-app/create-fastify-backend/node_modules/pino/lib/transport.js:21:18)
at transport (/Users/olivier/Projects/create-app/create-fastify-backend/node_modules/pino/lib/transport.js:110:10)
at normalizeArgs (/Users/olivier/Projects/create-app/create-fastify-backend/node_modules/pino/lib/tools.js:291:16)
at pino (/Users/olivier/Projects/create-app/create-fastify-backend/node_modules/pino/pino.js:84:28)
at createPinoLogger (/Users/olivier/Projects/create-app/create-fastify-backend/node_modules/fastify/lib/logger.js:42:14)
at createLogger (/Users/olivier/Projects/create-app/create-fastify-backend/node_modules/fastify/lib/logger.js:98:20)
at fastify (/Users/olivier/Projects/create-app/create-fastify-backend/node_modules/fastify/fastify.js:122:33)
Tried to play with customPrettifiers to see what could be done and I'm encountering a worker related error:
Leads to: