herbert mühlex
herbert mühlex

Reputation: 291

compiling typescript file creates empty js file in vs code

I have installed vs code on ubuntu 20 and wanted to compile a .ts file via tsc which created a empty js file.
node is installed , also typescript

also testing it with webstorm created a correct js file

why does this dont work in vs code ?

Upvotes: 2

Views: 2247

Answers (2)

user22541777
user22541777

Reputation: 1

You probably have not saved the file. Ctrl + s your .ts file and then run the tsc command in terminal. Its work for me.

Upvotes: -1

Bhakti
Bhakti

Reputation: 41

You probably have not saved the file. Ctrl + s your .ts file and then run the tsc command in terminal.

Upvotes: 4

Related Questions