DEV Community

Discussion on: Tracking errors in Angular with Sentry

Collapse
 
fallenritemonk profile image
FallenRiteMonk

A quick question: I constantly have problems on setting up the source-maps if I don't provide them on the web-space along side the js files. Could you add some explanation on how to upload source-maps the right way using sentry-cli?
Would be really helpful. Thanks

Collapse
 
n_mehlhorn profile image
Nils Mehlhorn

Angular will generate source maps for you which you can serve alongside your regular assets and Sentry will just pick them up. Browsers won't load them until you open the developer tools - therefore that's what I do.

Alternatively, if you don't won't to serve the source maps, you'd upload them to Sentry for every release. Here are the docs on that: docs.sentry.io/platforms/javascrip...