question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error, compatibility with jQuery 3.0

See original GitHub issue

The use with jQuery 3.0 seems to throw this error:

jquery.min.js:4 Uncaught TypeError: a.indexOf is not a function

Replacing .load(function with .on('load',function seems to solve the problem

Please read jQuery 3.0 breaking changes: https://jquery.com/upgrade-guide/3.0/#breaking-change-load-unload-and-error-removed

[Edit] The error encountered on plugin version 3.1.3

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
malihucommented, Sep 24, 2016

I see. Thanks for the feedback 😃

I’ve updated all examples in plugin archive/github but I haven’t updated the ones in the demo as I use older jQuery version. I’ll try to update those too as other people that get the code from there might have the same issue.

0reactions
malihucommented, Sep 24, 2016

@antonkulaga Please check if you also have .load(function code in your document and change it to .on('load',function

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery Core 3.0 Upgrade Guide
Now that most of the browsers supported by jQuery 3.0 have "use strict" , jQuery is being built with this directive. Your code...
Read more >
Error in jquery-3.0.0.js: "Unable to get property 'exports' of ...
I have tried to create a sample using JQuery 3.0, JQuery migrate 3.0.0 and JQuery ui 1.10.3, it seems that everything works well....
Read more >
How to upgrade to the latest version of jQuery
Look in the console for those Uncaught ReferenceError: $ is not defined errors. If you don't see one, congratulations you followed step 2 ......
Read more >
jQuery UI
Compatibility with recent jQuery versions (up to 3.6): Usage of deprecated jQuery APIs have been removed. jQuery UI 1.13 triggers no jQuery Migrate...
Read more >
jQuery 3 compatibility - WordPress.org
Currently the plugin throws an error when combined with jQuery 3.x. ... https://jquery.com/upgrade-guide/3.0/#breaking-change-load-unload-and-error-removed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found