angular-bootstrap-slider icon indicating copy to clipboard operation
angular-bootstrap-slider copied to clipboard

Uncaught TypeError: Cannot read property 'fn' of undefined bootstrap-slider.js:358

Open bradintheusa opened this issue 10 years ago • 8 comments

Hi

i am banging my head on this error.during load:

Uncaught TypeError: Cannot read property 'fn' of undefined bootstrap-slider.js:358

i know it is in my code as the samples work fine. I was hoping someone else may have seen/solved the issue before I slowly take my app apart.

Thanks

bradintheusa avatar Sep 07 '14 15:09 bradintheusa

I haven't yet updated to support bootstrap-slider v 4.x (waiting for it to stabilize a bit more). You could try using that bootstrap slider instead of 3.x

seiyria avatar Sep 07 '14 15:09 seiyria

Which versions work best together?. I am on the latest Bootstrap and Angular.

bradintheusa avatar Sep 07 '14 22:09 bradintheusa

I've only tested it on these ones, but if it resolves your error I think it would be worth upgrading.

seiyria avatar Sep 07 '14 22:09 seiyria

Got similar issue when combining 4.x with angular wrapper directives.

"Error: $.fn.slider.Constructor is undefined .link@http://localhost:8080/app/scripts/vendor/slider.js:10:5

And checked with 3.1.0, works fine.

realdah avatar Sep 19 '14 03:09 realdah

I fixed it by moving my query ui reference to before the plugin.

bradintheusa avatar Sep 19 '14 11:09 bradintheusa

Yeah, there is a conflict with jQuery UI slider. We have a way to avoid this: attack to $.bootstrapSlider instead.

seiyria avatar Sep 19 '14 12:09 seiyria

Hi @seiyria, bootstrap-slider is v4.5.1 now and seems stabilized. Any update to remove the reference to jQuery plugin slider?

Thanks

sheymann avatar Feb 27 '15 10:02 sheymann

No, there has not been a patch to do that as far as I know. You're welcome to submit a PR to do it though!

seiyria avatar Feb 27 '15 13:02 seiyria