Y
Y
Yaolegol2019-10-08 20:34:47
JavaScript
Yaolegol, 2019-10-08 20:34:47

React material-ui slider - when hovering over the slider, the error “callback is not a function” pops up from cheduler.development.js:99, how to fix it?

Hello everyone, I'm using create react app and material-ui slider.
When hovering over the circles of the slider, an error is displayed in the console:
"callback is not a function" from cheduler.development.js:99
How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaolegol, 2019-10-09
@yaolegol

Walking around that issue I finded solution:
1. this problem occurs when there are multiple versions of scheduler in the project
2. for check this use npm list scheduler, or yarn why scheduler(more info here and here )
3. if you have several versions of scheduler check link above or
- use with npm this
- use with yarn like this:

"resolutions": {
    "scheduler": "0.15.0"
  }

4. in any case after each manipulation with scheduler ALWAYS reload you react app (eg npm start)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question