vs code typescript compile does nothing -


i installed vs code try out. hit ctrl+shift+b on .ts file. first time, asked me set build task, did. now, build again , nothing. no errors or warnings no .js file either. ideas missed?

tasks.json

{     "version": "0.1.0",      // command tsc. assumes tsc has been installed using npm install -g typescript      "command": "tsc",     // command shell script      "isshellcommand": true,     // show output window if unrecognized errors occur.      "showoutput": "silent",     // args program compile.      "args": ["app.ts"],     // use standard tsc problem matcher find compile problems      // in output.      "problemmatcher": "$tsc" } 

tsconfig.json

{     "compileroptions": {          "target" : "ess",         "module": "amd",         "sourcemap": true      }  } 

whenever have problem task in visual studio code, change output mode:

"showoutput": "always", 

now i'll window output, if problem matcher doesn't detect problem. you'll see problems here. switch "silent" when have working.

potential issues...

you have target of ess, think want es5 (note five).

you should have got count of 1 next warning triangle icon in bottom left of window this.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -