Hi guys,
im facing the following error on my production system:
<rejected> TypeError: Cannot read property 'preSerialization' of undefined
at preserializeHook (/node_modules/fastify/lib/reply.js:461:28)
at Reply.send (/node_modules/fastify/lib/reply.js:190:7)
at FastifyAdapter.reply (/node_modules/@nestjs/platform-fastify/adapters/fastify-adapter.js:167:29)
at ExceptionsHandler.catch (/node_modules/@nestjs/core/exceptions/base-exception-filter.js:28:28)
at ExceptionsHandler.next (/node_modules/@nestjs/core/exceptions/exceptions-handler.js:16:20)
at /node_modules/@nestjs/core/router/router-proxy.js:13:35
} reason: TypeError: Cannot read property 'preSerialization' of undefined
at preserializeHook (/node_modules/fastify/lib/reply.js:461:28)
at Reply.send (/node_modules/fastify/lib/reply.js:190:7)
at FastifyAdapter.reply (/node_modules/@nestjs/platform-fastify/adapters/fastify-adapter.js:167:29)
at ExceptionsHandler.catch (/node_modules/@nestjs/core/exceptions/base-exception-filter.js:28:28)
at ExceptionsHandler.next (/node_modules/@nestjs/core/exceptions/exceptions-handler.js:16:20)
at /node_modules/@nestjs/core/router/router-proxy.js:13:35```
I tried catching it and logging the stack trace but it always defaults to this error message. I'm seriously lost here, can anybody point me in the right direction?