Raven.config is not a function

I’m running with the following JS loads:

<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script>
<script src="https://cdn.ravenjs.com/3.22.2/angular/raven.min.js" crossorigin="anonymous"></script>
<script>
    Raven.config('<***>').install();
</script>
<script src="app.js"></script>

But on page load/initialization I’m getting “Raven.config is not a function”. Peeking into angular/raven.js it looks like the factory may be returning an empty object instead of the Raven singleton. Am I doing something wrong?

FWIW, I’m not having any problems when using the regular raven.js but when I try to use the Raven/AngularJS bundle from the CDN I get this error.

2 Likes

I am getting the exact same error with the Raven/Vue bundle.

npm install raven-js --save