Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcemaps not found #366

Open
lorenzodianni opened this issue Dec 11, 2024 · 2 comments
Open

Sourcemaps not found #366

lorenzodianni opened this issue Dec 11, 2024 · 2 comments

Comments

@lorenzodianni
Copy link

I have an application built with Angular and Cordova.
Initially, I implemented Sentry using the @sentry/angular package and created releases on Sentry via the CLI using getsentry/action-release. With this setup, I never had any issues with sourcemaps, errors were tracked correctly, and I could view everything without any problems directly on sentry.io.

Then, I removed @sentry/angular and implemented sentry-cordova because I needed to capture app crashes.

Since making this change, errors in Sentry no longer find the corresponding sourcemap, even though the file is present in the release and visible under [Settings] > Projects > PROJECT_NAME > Source Maps.

Environment

node v20.11.0
@sentry/cli 2.39.0
sentry-cordova 1.4.1

Expected Result

To view the errors correctly, using the uploaded sourcemap

Setup JS

const Sentry = cordova.require('sentry-cordova.Sentry');
Sentry.init({
    dsn: this.env.sentry.dsn,
    environment: 'production',
    release: `graze@${version}`,
    integrations: [Sentry.browserTracingIntegration()],
    tracesSampleRate: 0.25,
  });
}

Setup CLI

Sentry Github Step

    - name: Sentry Release
      uses: getsentry/[email protected]
      env:
        SENTRY_AUTH_TOKEN: ${{ inputs.sentry_auth_token }}
        SENTRY_ORG: ${{ inputs.sentry_org }}
        SENTRY_PROJECT: ${{ inputs.sentry_project }}
      with:
        environment: production
        version: 'graze@${{steps.build.outputs.app_version}}'
        sourcemaps: 'root/dist'

Actual Result

Missing sourcemap warning

Image

Sentry sourcemap uploads

Image
Copy link

github-actions bot commented Jan 2, 2025

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@lorenzodianni
Copy link
Author

Keep it open please, i'm waiting for an answer 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Discussion
Development

No branches or pull requests

1 participant