somewebmedia / hc-sticky

JavaScript library that makes any element on your page visible while you scroll.
https://somewebmedia.github.io/hc-sticky/
MIT License
463 stars 115 forks source link

Uncaught TypeError: Cannot read property 'queries' of undefined #57

Closed Bluxart closed 5 years ago

Bluxart commented 5 years ago

Hi, I have included this script in WordPress. But I have this error: Uncaught TypeError: Cannot read property 'queries' of undefined

I used the default jQuery version bundled with WordPress 4.9.8

Image Reference: https://cl.ly/195da84f9347

somewebmedia commented 5 years ago

Are you using the latest version of hc-sticky? And can you provide me with the code you are calling the sticky?

Bluxart commented 5 years ago

Hi, yes I used the last version 2.2.3

I used the default jQuery example code:

jQuery(document).ready(function($) { $('#element').hcSticky({ stickTo: '#content' }); });

Or this

jQuery(document).ready(function($) { $('#element').hcSticky(); });

return me the error...I tested also some old version of plugins but have the same error in console log.

Bluxart commented 5 years ago

I have make some test ( change the position about calling script ) and now the error disappear and work the last version.

Thanks.

iamplugged commented 5 years ago

@somewebmedia Pls close.

sagarponnur commented 2 years ago

jquery.min.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'isEmptyObject') at setOptions (hc-sticky.min.js:102:19) at new hcSticky (hc-sticky.min.js:698:5) at HTMLDivElement. (hc-sticky.min.js:731:24)

I getting error in console. Wordpress theme - Urna hc-sticky.min.js is integrated in theme. hc-sticky.min.js - 2.2.7

Can you help me with that, please?