Skip to content

Empty DSN with AngularJS integration #2369

@xr0master

Description

@xr0master

Package + Version

  • [x ] @sentry/browser

Version:

5.10.2

Description

If we set the DSN as null for dev machine, when ngSentry doesn't exist.

Error: [$injector:modulerr] Failed to instantiate module app
[$injector:nomod] Module 'ngSentry' is not available!

Our code

import * as Sentry from '@sentry/browser';
import * as Integrations from '@sentry/integrations';

Sentry.init({
    release: process.env.APP_VERSION,
    dsn: process.env.SENTRY_DSN,
    integrations: [
        new Integrations.Angular()
    ]
});

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