It seems not matter what I do, I cannot get my .ts files to compile into .js files. I have uninstalled and reinstalled Visual Studio 2017 Community and I now have VS 2017 15.2 (26430.15)
and Typescript 2.2.2.0
(according to the About
window inside VS).
Steps I am taking:
ts1.ts
ts1.ts
and add single line (eg var a = 1
) I've tried it with/without tsconfig.json
and I have tried adding compileOnSave
to tsconfig
when I have added it.
Help?
edit: There are no build errors or warnings and I get a message in the footer saying Output(s) generated successfully
.
Do you not just need to select "Show All Files" in the Solution Explorer. I have just followed your exact steps, and when showing all files, I can see the JS file, its just not automaticly added to the project.
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.