You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clone the reproduction code;
run npm run start:dev;
see that error's cause is not logged;
run npm run build && npm run start:prod;
see that error's cause is logged.
Expected behavior
Seeing an error cause while in nest start --watch mode
While I was creating a reproduction repo, I realized that since you have ES2021 in your default tsconfig.json, that means you don't have to support ES2022. But still it would be nice to have error's cause to be logged.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current behavior
I change tsconfig.json target to ES2022
I throw an error in onModuleInit in a service:
I run:
nest start --watch
In the terminal I see that the cause is not logged:
When I run
nest build
and thennode dist/main
, I have the expected stack trace:Minimum reproduction code
https://github.com/dmitryrn/nestrepro
Steps to reproduce
clone the reproduction code;
run
npm run start:dev
;see that error's cause is not logged;
run
npm run build && npm run start:prod
;see that error's cause is logged.
Expected behavior
Seeing an error cause while in
nest start --watch
modePackage
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
^10.0.0
Packages versions
Node.js version
v21.6.2
In which operating systems have you tested?
Other
While I was creating a reproduction repo, I realized that since you have ES2021 in your default tsconfig.json, that means you don't have to support ES2022. But still it would be nice to have error's cause to be logged.
The text was updated successfully, but these errors were encountered: