StephenChou1017 / react-big-scheduler

A scheduler and resource planning component built for React and made for modern browsers (IE10+)
https://stephenchou1017.github.io/scheduler/#/
MIT License
754 stars 414 forks source link

Uncaught (in promise) TypeError: schedulerData.getSchedulerContentDesiredHeight is not a function #22

Open jovimassimiliano opened 6 years ago

jovimassimiliano commented 6 years ago

Hi am currently trying to use react-big-scheduler as a component on my project but I face an issue said getSchedulerContentDeisredHeight is not a function. I am still using react version 15.6.1. any thought to solve it? Many thanks before

StephenChou1017 commented 6 years ago

@jovimassimiliano It seems that you have a spelling error, getSchedulerContentDeisredHeight -> getSchedulerContentDesiredHeight, is that the reason? :-)

jovimassimiliano commented 6 years ago

Hello sorry actually it's getSchedulerContentDesiredHeight is not function hehe, I did typo while typing this issue. I just installed the latest version and use it as a component by calling Scheduler.

screen shot 2018-08-19 at 11 37 34
jovimassimiliano commented 6 years ago

even I copied the code from your Basic.js source code and it returned same error :(

StephenChou1017 commented 6 years ago

@jovimassimiliano Hi, the 0.2.1 version needs react@^16.0.0, maybe you can try the 0.1.0 version, it needs react@^15.4.1

nimesha95 commented 6 years ago

Facing the same issue.. react version 16.0.0 and big-scheduler 0.2.1

nimesha95 commented 6 years ago

Ah never mind, found the problem. In my case "schedulerData" objecr is not passing as a props.

AmmaraNiazi commented 5 years ago

Ah never mind, found the problem. In my case "schedulerData" objecr is not passing as a props.

How did u fix it?