Skip to content

Cannot readable stack trace in angular sentry #5454

@smrb76

Description

@smrb76

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which package are you using?

@sentry/angular

SDK Version

7.7.0

Framework Version

7.7.0

Link to Sentry event

No response

Steps to Reproduce

I did the following instruction in angular.json:
"sourceMap": { "scripts": true, "hidden": true }

in main.ts:

import {enableProdMode} from '@angular/core';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';

import {AppModule} from './app/app.module';
import {environment} from './environments/environment';
import * as Sentry from '@sentry/angular';
import {BrowserTracing} from '@sentry/tracing';

Sentry.init({
  dsn: environment.sentryDsn,
  environment: 'development',
  release : environment.release,
  integrations: [
    new BrowserTracing({
      tracingOrigins: ['localhost', environment.ApiUrl],
      routingInstrumentation: Sentry.routingInstrumentation
    })
  ],
  tracesSampleRate: 1,
});

if (environment.production) {
  enableProdMode();
}

document.addEventListener('DOMContentLoaded', () => {
  platformBrowserDynamic().bootstrapModule(AppModule)
    .catch(err => console.error(err));
});

in app.module.ts:
image

And my Makefile is:
image

Expected Result

Expected result is which line of code produce error
like this:
image

Actual Result

The output from Makefile is complete and finish without any error And release is done and all sourceMaps is uploaded on sentry Dashboard, But Still doesn`t recognize where error is trigger exactly
Fat6K

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions