When setting disableMiddleware to true (so it can run my guards first THEN the interceptor, which is the order I need), and use DTO validation translation (with I18nValidationExceptionFilter), I get the following error:
TypeError: Cannot read properties of undefined (reading 'service')
at I18nValidationExceptionFilter.catch (/app/apps/backend/node_modules/nestjs-i18n/dist/filters/i18n-validation-exception.filter.js:26:83)
at ExceptionsHandler.invokeCustomFilters (/app/apps/backend/node_modules/@nestjs/core/exceptions/exceptions-handler.js:30:26)
at ExceptionsHandler.next (/app/apps/backend/node_modules/@nestjs/core/exceptions/exceptions-handler.js:14:18)
at /app/apps/backend/node_modules/@nestjs/core/router/router-proxy.js:13:35
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Describe the bug
When setting disableMiddleware to true (so it can run my guards first THEN the interceptor, which is the order I need), and use DTO validation translation (with I18nValidationExceptionFilter), I get the following error:
Reproduction
This is my code in app.module.ts:
lang.resolver.ts:
main.ts
System Info
Used Package Manager
yarn
Validations