IonDen / ion.rangeSlider

jQuery only range slider
http://ionden.com/a/plugins/ion.rangeSlider/en.html
MIT License
2.55k stars 506 forks source link

Ion Range slider compatibility issue #719

Open poodas opened 4 years ago

poodas commented 4 years ago

I am using Ion-RangeSlider in angular9 application. The issue i am facing is when i am trying to use "$" from jquery it is giving me error as "Cannot find name '$'. Do you need to install type definitions for jQuery? Try npm i @types/jquery and then add jquery to the types field in your tsconfig.​"

I have already installed @types/jquery and the jquery version i am using is "jquery": "^3.5.1" and "@types/jquery": "^3.5.0"

Code: ($('.js-range-slider')).ionRangeSlider({ ...... });

Can you please let me know why i am getting this issue?

IonDen commented 3 years ago

Hi, probably you imported jquery as jquery to your code. Not as $. You can always launch slider by calling it like this: jquery('.js-range-slider')...