React APP TypeScript, running on local host.
I have written a try...catch block and trying to show the error source (file name, method, line, etc) on the Form to be displayed whenever any child component throws an error.
In the code, the stack gives me info like below, My Custom Error Thrown at Object.execute (./static/js/bundle.js:6072:13) at onChangeHandler (./static/js/bundle.js: 1869:105) ...
when I console.log the error in chrome I get below, My Custom Error Thrown at Object.execute (ReactComp1.tsx:40:1) at onChangeHandler (ReactComp2.tsx: 38:1) ...
- Why am I not getting the actual file name and line# same as Chrome's Developer Console ? 1.1) notice the bundle.js instead of actual file name.
- Is this an issue with how the react ts app is running locally ?
- where to change to get the actual name and line # ?