umurkontaci/angular-raven

Uncaught TypeError: Cannot read property 'captureException' of undefined

Closed this issue · 3 comments

Suggested resolution:
if($window.Raven){
$window.Raven.captureException(exception, cause);
}
But maybe i'm not understanding the root of the problem.

No, i think was wrong. It looks like RavenConfig is never injected anywhere in the module. I'm pretty new to angular, so please forgive my ignorance. I also don't see where raven gets bound to $window? Maybe this module was for an older version of angular?

Sorry i'm an idiot, i forgot to include raven itself.