seiyria / angular-bootstrap-slider

an angularjs directive for seiyria-bootstrap-slider
MIT License
180 stars 123 forks source link

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

Open bradintheusa opened 10 years ago

bradintheusa commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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

seiyria commented 10 years ago

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

realdah commented 10 years ago

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 commented 10 years ago

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

seiyria commented 10 years ago

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

sheymann commented 9 years ago

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

Thanks

seiyria commented 9 years ago

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!