Typescript 1.0 map files not loading

In VS2013, Update 2 RC (Typescript 1.0 RTM) I cannot debug TypeScript files in one of my projects. I traced this back to the map file declaration. By default, my JS file contains:

//# sourceMappingURL=general.js.map

What should be correct, the map file is in the same folder as the TS and JS files. However, this will not work. if I manually edit the file with the full path, it will work:

//# sourceMappingURL=C:/Users/myname/Documents/Visual Studio 2013/Projects/Test/JSLib/general.js.map

Does this bother me because, of course, the browser does not have to understand the full path, for example, outside the IISExpress website?

Can anyone suggest a way to get map files that work with the first display? Thanks

Windows 8.1 x64, IE11

Update: An application running through IISExpress uses Windows Authentication. if I disconnect it from downloading map files! Also, checking the output window, I see:

SourceMap http://localhost:53524/JSLib/general.js.map read failed: The remote server returned an error: (401) Unauthorized.'iexplore.exe' (Script): Loaded 'http://localhost:53524/JSLib/'.

My IIS Express Logs Contain

2014-04-12 13:58:24 ::1 GET /JSLib/general.js.map - 53524 - ::1 - - 401 2 5 0

But I can browse http://localhost:53524/JSLib/general.js.mapin IE. So what does the call for the map file (VS?) Make and how do I get it to use my credentials?

+4
source share
1 answer

I also came across this problem. I'm sorry that I do not know what the root of the problem is. However, I found a workaround.

"TypeScript Build". "" " " $(ProjectDir)\Scripts.

Windows "sourceMappingUrl".

+5

Source: https://habr.com/ru/post/1536142/


All Articles