Skip to content

ReferenceError when using angular plugin #479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
srtonz opened this issue Jan 18, 2016 · 3 comments
Closed

ReferenceError when using angular plugin #479

srtonz opened this issue Jan 18, 2016 · 3 comments

Comments

@srtonz
Copy link

srtonz commented Jan 18, 2016

I've been trying to use raven.js and plugins/angular.js in our app , which always seems to result in

60:1 ReferenceError: module is not defined

Tried to load the plugin before and after the main raven.js, also tried loading it before and after the Raven.config().install() without success. I'll probably have some time to investigate in the next few days, but someone else may be able to fix faster?

(related note: using the git/bower version with plugins isn't very well documented, docs seem to point to the CDN versions in most cases)

@benvinegar
Copy link
Contributor

@geotob – Sounds like #446

How are you loading these files? <script> tags? Or with a module loader?

@srtonz
Copy link
Author

srtonz commented Jan 18, 2016

@benvinegar how did I miss #446, sorry! And there's a PR for it too, great:) And yes, <script> tags it is... who uses module loaders cough

@benvinegar
Copy link
Contributor

@geotob Thanks for clarifying. I've already merged that PR and I am going to put out a 2.1.0-beta release shortly that should solve this.

Closing because dupe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants