tsc command output empty js file
I encountered a similar issue. I quickly realized that I haven't save the main.ts file on VS code by running:
cat main.ts
In that case, you are basically compiling an empty file. I guess the tutorial did not bother to mention that you should manually save your file.
You first need to save the file. (Ctrl + s)
.
Otherwise compiler will compile an empty file.
So you should manually save the file.