Uncaught TypeError: Cannot read property 'captureException' of undefined
Closed this issue · 3 comments
deweydb commented
deweydb commented
Suggested resolution:
if($window.Raven){
$window.Raven.captureException(exception, cause);
}
But maybe i'm not understanding the root of the problem.
deweydb commented
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?
deweydb commented
Sorry i'm an idiot, i forgot to include raven itself.