Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: this.updater.enqueueCallback is not a function #42

Open
neerajvelocis opened this issue Aug 26, 2020 · 2 comments
Open

Comments

@neerajvelocis
Copy link

Dear react-timeslot-calendar Team,
The module is amazing and fills the requirements. But when I click on particular timeslot it is giving below error

Uncaught TypeError: this.updater.enqueueCallback is not a function

Any fix is available for this error.

Thanks in advance.

@chalyi-andrei
Copy link

the same issue

@SLSC94
Copy link

SLSC94 commented Oct 2, 2020

There's a quick 'hack' for this issue.

  1. Copy the react-datetime-calendar src folder to your own project src folder (and rename it as say, timeslots)
  2. Remove "react-timeslot-calendar": "^0.2.0" from your dependencies in package.json
  3. Change the source of your import in the file where you're using the calendar, i.e. import ReactTimeslotCalendar from "react-timeslot-calendar"; to import ReactTimeslotCalendar from "<insert relative path here>/timeslot/js/react-timeslot-calendar";
  4. Run npm install then npm start
  5. The error should disappear

Note: you'll have to manually run npm install <packagename> depending on which packages you have yet to install in your project which this codebase is dependent on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants