TypeScript: Visual Studio 2015 TypeScript won't transpile
TypeScript Version: 2.0.3
This is my tsconfig file:
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules"
]
}
I have a project in Visual Studio 2015 Update 3 with TypeScript version 2.0.3 and none of my .ts files are compiling on save anymore. I can run the command tsc (file path)
which will transpile the .ts file into a .js, but it does not create a map, which makes it so I cannot debug in Chrome. Simply saving a .ts file does not have any effect.
The machine I am working on is Microsoft Windows Server 2012 as User A. Any Visual Studio project I open has the same symptoms and will not compile TypeScript, however, Users B and C on the same machine are not experiencing any issues (also in Visual Studio 2015 Update 3).
It appears to me that it may somehow be related to the user account I am using - the evidence being that other users on the same machine, using the same Visual Studio are not having the same problems I am.
Is there something that is user specific that could have been changed on my account that would cause this type of behavior and not have been changed for other users?
Thank you in advance for any help
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 28 (13 by maintainers)
i guess i have the same issue
Visual Studio 2015 update 3 updated Typescript from 1.8.* to 2.0.3 and now my ts is not transpiling and i get warnings about experimental decorators (but they are enabled in my tsconfig).
when i run tsc -v i get 2.0.3
but when i run tsc with a file that contains decorators i get a warning that i should enable them in tsconfig.
when i run tsc without options nothing happens
do you have any hint how i can diagnose why tsc is not picking up the tsconfig file?
update 1:
i used procmon to see what tsc does when i run tsc -p . in my project dir
it reads the tsconfig and all ts files but does not write an updated js back to disk.
update 2:
i created a gulp task / watch and pointed it to the tsconfig. that way it at least compiles. source maps are not generated as configured and excluded files still produce warnings.
here is my tsconfig by the way