antonybudianto / angular-starter

:star: Gulp Angular Starter using TypeScript (Updated to 4.4.3)

Home Page:https://antonybudianto.github.io/angular-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debug TS files not working in Chrome

Marty070 opened this issue · comments

Hi,

I've followed the setup steps in the readme. Everything works as expected, except when I select a .ts file in the Chrome debugger it shows up empty. It looks like that it has something to to with the source mapping, maybe a config issue?

update it does work when I manually change the js.map file, adding an extra '/' before the relative path to the .ts file. e.g. '{"version":3,"sources":["/app/todolist/todolist.component.ts"] ... however, when I restart npm start it will overwrite these changes. Any thoughts? Thanks!

@Marty070 , I'll take a look at it when I'm free, thanks for the report!

This fix works, thanks a lot!