In my case. I think the problem is in the standard node executable. node target.ts
I replaced it with nodemon
and surprisingly it worked!
The way using the standard executable (runner):
node target.ts
The way using the nodemon executable (runner):
nodemon target.ts
Do not forget to install nodemon with npm install nodemon
;P
NOTE: this works amazing for development. But, for runtime, you may execute node
with the compiled js
file!