fullcalendar: Illegal Invocation in Salesforce lightning web component which does not support Element.Prototype
I created a Lightning Web Component in Salesforce and added FullCalendar as a 3rd party Javascript library but encountered this issue (please see screenshot)
[Illegal invocation] elementClosest()@https://<url_replaced>/resource/1566359863000/fullcalendar/core/main.js:126:30 Proxy.realHandler()@https://<url_replaced>/resource/1566359863000/fullcalendar/core/main.js:383:32

About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 1
- Comments: 15 (2 by maintainers)
fullcalendar-6.1.4.zip
I want to create Similar as Full Calendar Demo In Lightning Web Component (Lwc) and In calendar Js I am using V6. So please anyone guide me in which all are files is need to upload in static resource to work as a Similar Full Calendar Demo.
issue has been fixed: Lightning Web Component in Salesforce does not support Element.Prototype (yet)
so replacing line 126 of the core/main.js
@MannyJMusic As of now I found these two GitHub repo Where Full Calendar Js is implement with V3 and V4 but not is V6.
https://github.com/brahmajitammana/lwc-fullcalendarjs - V3
https://github.com/markslott/lwc-fullcalendar - V4.3.1
You can refer this repo and implement Calendar with LWC. this repo is working good. And if You found latest version and implementation then please share recourses with me also.
Thanks for the detailed report and workaround. I will reopen this issue as a feature request to support SalesForce Lighting without having to modify the source. (Reported in https://fullcalendar.freshdesk.com/a/tickets/1785)