question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Empty DSN with AngularJS integration

See original GitHub issue

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()
    ]
});

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilogorekcommented, Aug 24, 2020

Will release a patched version this week 😃

0reactions
HugoPoicommented, Aug 24, 2020

I found a workaround

angular.module('ngSentry', []);

Sentry.init({
    dsn: '___SENTRY_API_URL___',
    environment: '___SENTRY_ENV_LABEL___',
    integrations: [
        new Integrations.Angular(),
    ],
});

but has been fix by @kamilogorek ❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does AngularJS include an empty option in select?
In short: the empty option means that no valid model is selected (by valid I mean: from the set of options). You need...
Read more >
Catch all errors in Angular app | Better world by better software
Catch all errors in Angular app. Catch all possible errors using both global and angular error hooks. ... DSN is your projects API...
Read more >
AngularJS 1.x for Angular - Sentry Documentation
Learn how to use Sentry's AngularJS integration if you're using AngularJS 1.x. ... Sentry.init({ dsn: " https://examplePublicKey@o0.ingest.sentry.io/0", ...
Read more >
ngRepeat - AngularJS: API
The ngRepeat directive instantiates a template once per item from a collection. Each template instance gets its own scope, where the given loop...
Read more >
Power automate update sharepoint file properties
Click on My flows, select Create from blank, and include the When an HTTP request ... After configuring the DSN for SharePoint, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found