nest icon indicating copy to clipboard operation
nest copied to clipboard

fix(core): patch body.errorLogger undefined on express-adapter.ts

Open ryanhs opened this issue 6 months ago • 3 comments

PR Type

What kind of change does this PR introduce?

  • [x] Bugfix
  • [ ] Feature
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

TypeError: body.errorLogger is not a function at /app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:51:26 at node:internal/util:464:12 at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

What is the new behavior?

correct behaviour using errorHandler from StreamableFile

Does this PR introduce a breaking change?

  • [ ] Yes
  • [x] No

Other information

ryanhs avatar Aug 07 '24 06:08 ryanhs