I am trying to compile a .ts to .js
I have tsconfig.json as below
{
\"compilerOptions\": {
\"target\": \"es5\",
\"module\": \"co
If you look at the error message carefully, you can see the reason for the failure. The command line that was formed to run tsc is looking at the wrong directory. It was looking at instead of . See how tsconfig.json is repeated twice in the error?
error TS5014: Failed to parse file '
Running npm install typescript --save-dev worked for me, but I can see how editing the task and specifying the command to look in the right directory for tsconfig.json would solve the problem too.