I'm expecting NestJs a typescript nodejs backend framework would be able to map to the typescript file whenever there is an error occurred, when using the default command npm run start:dev
or npm run start:debug
From what I experienced, when there is an error output, the stack trace is referred to javascript counterpart. I feel that is kinda defeating the purpose.
Does anyone have an idea how to configure the project to run in 'watch & automatically compile' mode; when there is stack trace or error occurs, to have it mapped to the Typescript file instead?
Update
Eventually I changed the code to use source-map-support
to print the stack-trace with reference to typescript
How to print stack trace with reference to typescript source in Nest.js reference-to-typescript-source-in-nest-js (highlighted in the comment by Jay)