Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular console log source is always instrument.js

I'm now running Angular 12.1.0 in NX Monorepo in latest version 12.6.5. For a long time (not just with the last version) I noticed the console logs from angular components in my system are marked as comes from instrument.js file instead of real ts files.

screenshot

I'm trying to investigate it and it does not happen in freshly generated NX repo. I don't know where to focus my search. Webpack stuff is hidden behind Angular CLI. Can anyone give me a hint?

like image 329
George Knap Avatar asked Jul 12 '26 13:07

George Knap


1 Answers

Fixed!

Based on this article the problem is caused by Sentry javascript library.

Solution is to add sentry into ignore patterns in Chrome Devtools: enter image description here

like image 57
George Knap Avatar answered Jul 15 '26 05:07

George Knap



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!