-
Notifications
You must be signed in to change notification settings - Fork 139
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
Initialization with jQuery -> Cannot read property 'jquery' of undefined #145
Comments
Hi, Most likely you did not include |
Thx you right. I have installed airbrake-js with bower and Bowerfile in Ruby on Rails and sprocket was not known instrumentation/jquery.js. |
I am having this problem too. Is instrumentation a modified version of jquery specific to airbrake? how come when I try to load jquery 2.1.4, it won't work. @vmihailenco |
airbrake-js jQuery instrumentation just adds some hooks to standard jQuery version - https://raw.githubusercontent.com/airbrake/airbrake-js/master/src/instrumentation/jquery.coffee. It should work with 2.1.4, but I did not test it. |
Okay that's what I was getting at, it sounds like this file is adding hooks, but it doesn't appear to actually just be a plain jQuery library. I was trying to load airbrake and a standard jQuery library, without this instrumentation file. I would recommend renaming the file jquery-hooks or something so people understand what this file is doing (naming it jquery.min.js implies it is a standard library file) |
I am getting the same error, 'Uncaught TypeError: Cannot read property 'jquery' of undefined' |
Then just don't include instrumentation/jquery.js file... |
@vmihailenco I don't have instrumentation/jquery.js on the page. |
When I add this to my initialization:
Cannot read property 'jquery' of undefined
airbrakeJs
-> Object {}
What I doing wrong?
The text was updated successfully, but these errors were encountered: