Initialization with jQuery -> Cannot read property 'jquery' of undefined
See original GitHub issueWhen I add this to my initialization:
var airbrake = new airbrakeJs.Client({projectId: 1, projectKey: 'abc'});
if (window.jQuery) {
airbrakeJs.instrumentation.jquery(airbrake, jQuery);
}
Cannot read property ‘jquery’ of undefined
airbrakeJs -> Object {}
What I doing wrong?
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'init' of undefined ...
Well, in your code you're calling a function called init from the object $.material but it seems that $.material is undefined. You have...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError : Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an...
Read more >jquery-3.3.1.min.js:2 Uncaught TypeError
js:2 Uncaught TypeError: Cannot read property 'indexOf' of undefined. in Using jQuery • 4 years ago. I have upgraded jQuery version to 3.3.1...
Read more >How to Fix TypeError: Cannot read Property 'push' of ...
You call the method on a variable previously set to undefined . · You call the method on a variable before it has...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Then just don’t include instrumentation/jquery.js file…
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.