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?
your problem is very unusual and nobody can help you. You can try re-install TypeScript (npm install typescript) or you can use the online compiler on https://www.typescriptlang.org/play .
You probably have not saved the file. Ctrl + s your.ts file and then run the tsc command in terminal.
@Bhakti thanks a lot! I saved it as you suggested and now the tsc
command creates a proper.js file!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.