getsentry / sentry-capacitor

The official Sentry SDK for Capacitor
https://sentry.io
MIT License
119 stars 32 forks source link

Wrong line number on web #149

Closed lucas-zimerman closed 2 years ago

lucas-zimerman commented 2 years ago

Environment

How do you use Sentry? Sentry SaaS (sentry.io)

Which SDK and version? latest

Steps to Reproduce

use this sample https://github.com/lucas-zimerman/sentry-capacitor/tree/ref/docs-m1/example/ionic-angular-v3

yarn install ionic build npx cap sync http-server ./www and just open the app and sentry will receive an error.

Expected Result

Correct Line numbers and correct in app

Actual Result

https://sentry.io/organizations/sentry-sdks/issues/3083897173/?project=5522756&query=is%3Aunresolved&statsPeriod=24h image image

The error happened on line 43 on Sentry.captureException(new Error("custom error")); instead it points to expor class AppModule {} (line 56)

InApp issue is reported here: #43 And I need to validate if the same happens on Android/iOS

lucas-zimerman commented 2 years ago

Wrong line number is due to different codebases using the same release number