Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

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

Open
bradintheusa opened this issue Sep 7, 2014 · 8 comments

Comments

@bradintheusa
Copy link

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

@seiyria
Copy link
Owner

seiyria commented Sep 7, 2014

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

@bradintheusa
Copy link
Author

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

@seiyria
Copy link
Owner

seiyria commented Sep 7, 2014

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

@realdah
Copy link

realdah commented Sep 19, 2014

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.

@bradintheusa
Copy link
Author

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

@seiyria
Copy link
Owner

seiyria commented Sep 19, 2014

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

@sheymann
Copy link

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

Thanks

@seiyria
Copy link
Owner

seiyria commented Feb 27, 2015

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants