0

As title says, I'm unable to find my typescript files in IE 11 debugger, as I do in Chrome debugger.

I scrolled down to "Dynamic scripts", but I'm only seeing Javascript files in it.

Would appreciate any help. Thanks

Aa Yy
  • 1,702
  • 5
  • 19
  • 34
  • Possible duplicate of [How to debug why MS Edge/IE11 does not load sourcemap](https://stackoverflow.com/questions/34687049/how-to-debug-why-ms-edge-ie11-does-not-load-sourcemap) – toskv Apr 16 '18 at 14:30
  • @toskv it is not a duplicate – Aa Yy Apr 16 '18 at 14:40
  • both questions are about sourcemaps not working in IE11.. – toskv Apr 16 '18 at 14:42
  • @toskv but the answer there is not relevant to my case – Aa Yy Apr 16 '18 at 14:43
  • also i'm not working with js files – Aa Yy Apr 16 '18 at 14:44
  • yeah, you are.. the way you get to see .ts files in any browser's debugger is if the .js files they produce include the proper source maps. Ts does not run directly in the browser. – toskv Apr 16 '18 at 14:45
  • @toskv but he is editing the js files, adding/removing lines from js files, while i don't. i'm only working with ts files so questions about editing js files are not relevant to my case – Aa Yy Apr 16 '18 at 14:47
  • how does then your typescript code end up in the browser? Do you not generate javascript files? With the help of the compiler ofcourse. – toskv Apr 16 '18 at 14:50
  • I'll explain again my problem because i'm not sure I understand you, I can see my whole angular project as *.js files in IE debugger, so i believe source map is working. BUT *.js files are not helping me, I need to get the *.ts files in order to do a proper debug, same way i'm able to do with Chrome with webpack – Aa Yy Apr 16 '18 at 14:54
  • 1
    do some reading on sourcemaps. they might do something else than what you think they do ;) – toskv Apr 16 '18 at 14:59

2 Answers2

0

Do you have the following in your tsconfig.json file under compilerOptions?

"sourceMap": true,

Sam B
  • 119
  • 2
  • 8
0

What solve my problem was to update my NPM & Node JS. After that I was able to find all *.ts files in the debugger

Aa Yy
  • 1,702
  • 5
  • 19
  • 34