question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update to 2.1.4 now says that ionRangeSlider is not a function in Aurelia

See original GitHub issue

The slider was working perfectly in 2.1.3 but since I upgraded. I cannot get the slider to work with Aurelia. I keep getting that the $(…).ionRangeSlider is not a function error.

import 'ion-rangeslider';

export class MyClass{
    $('#dateRangeSlider').ionRangeSlider();
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
IonDencommented, May 9, 2016

Ok, i will investigate this more.

1reaction
Robert-Wcommented, May 9, 2016

Hi I can confirm the same issue, I was on 2.1.2 and everything worked. I am also getting multipleDefine errors in our application which is using the Esri JavaScript API (built on Dojo so it uses Dojo’s AMD loader). I can confirm we load jQuery as a script before we load the Esri API with dojo’s loader.

I definitely agree that the commit you linked has something to do with it. I can fix the multipleDefine error by aliasing jquery in my dojoConfig like so:

var dojoConfig = {
  parseOnLoad: false,
  async: true,
  packages: [
    ....
  ],
  aliases: [
    ['jquery', 'vendor/jquery/dist/jquery.min.js'],
    ....
  ],
  deps: ['dojo/domReady!'],
  callback: function () {require(['js/main']);}
};

However that does not fix the TypeError: $(...).ionRangeSlider is not a function error

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update to 2.1.4 now says that ionRangeSlider is not a function in ...
The slider was working perfectly in 2.1.3 but since I upgraded. I cannot get the slider to work with Aurelia. I keep getting...
Read more >
Jquery plugins giving errors $(...).ionRangeSlider not a function
This is not an issue of jquery placed after plugin's js file. I placed jquery at the top in the scripts of index.jade...
Read more >
Error 'Is not a function' when using imported class
I am using an httpClient request to load some data, and have imported a class and object to handle getting status codes based...
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError- Some selector is not a function - jQuery is not a function - owlCarousel is...
Read more >
所有库 - 基于CDNJS.COM的前端开源库文件快速浏览搜索平台
库名 最新版本 描述 16pixels 0.1.12 16pixels as a node packaged module 6pac‑slickgrid 3.0.2 A lightning fast JavaScript grid/spreadsheet 6px 1.0.3 Javascript client for 6px
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found