Skip to main content

Which source maps should I upload to Sentry for Ionic Capacitor Android Builds?

Updated over a month ago

Issue

We are uploading source maps to Sentry from our Angular project, specifically the www directory. However, source maps are not resolving correctly. Which source maps should we be uploading?

Applies To

  • Ionic Capacitor Android builds

Resolution

Sentry resolves source maps by matching the file paths in stack traces to the uploaded source maps. In the case of Ionic Capacitor Android builds, the final source maps are placed in:

android/app/src/main/assets/public

Instead of uploading the www directory, you should upload the source maps from the final build location

Did this answer your question?