Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2015 Typescript compile to single file on save not working

I have trouble with VS 2015 and Typescript compile on save. If I enable combine all outputs into one file that output file will not be updated on save. During build the file gets updated correctly. Some times there is an error message in the status bar which states the .map file can't be written. If i disable the one file option compile on save is working.

Is there any option to enable some logging so I could figure out what is going wrong?

Update: I was able to reproduce this with a new clean Project and also on another PC of a collegue with a completeely different existing project. So this seems to be a general bug.

like image 529
Denis Thomas Avatar asked Jul 22 '15 09:07

Denis Thomas


People also ask

Do TypeScript files need to be compiled?

Typescript is a superset of javascript but it is a strongly typed, object-oriented programming language. Typescript file does not run directly on the browser as javascript run, we have to compile the typescript file to the javascript then it will work as usual.

How does TypeScript compilation work?

js”). Then after compiling the TypeScript code file into the JavaScript code file, it actually reads and interprets the JavaScript code. After interpreting the JavaScript code, the compiler compiles that code which thereafter produces the result.


1 Answers

Yes, I reproduced this too

You need to set full path for JavaScript file

like image 136
sergpy Avatar answered Nov 27 '22 05:11

sergpy