I am trying to compile a .ts to .js
I have tsconfig.json as below
{
\"compilerOptions\": {
\"target\": \"es5\",
\"module\": \"co
There could be a bunch of things that can go wrong when saving a file that would prevent correct parsing. I usually elect to not deal with it by renaming the file to tsconfig.json.backup or something, then invoking tsc --init to generate a known good file. You can then transfer your specific configuration into the newly generated tsconfig.json file, uncommenting the parts you care about.
If it persists after that, it could be an actual bug in the TypeScript version you're on.