vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
964 stars 82 forks source link

Uncaught TypeError: Cannot read properties of null (reading 'context') #219

Closed FedeAlbe closed 5 months ago

FedeAlbe commented 5 months ago

Hi sorry first time opening an issue.

I was trying to use your component in a react app , but i don't why i can't make it work.

this is what i made up so far

Screenshot 2024-01-16 alle 01 17 08 Screenshot 2024-01-16 alle 01 16 58 Screenshot 2024-01-16 alle 01 16 42

but i receive this error in the console

Screenshot 2024-01-16 alle 01 18 07
vkurko commented 5 months ago

Unfortunately, I don't have an example of using Event Calendar in React. For any such framework, the calendar should be initialized in a hook that is called after your component is mounted in the DOM. From your screenshots, it's not quite clear at what point the initialization occurs.

vkurko commented 5 months ago

@FedeAlbe any update?

vkurko commented 5 months ago

I hope I can close this issue.