@fullcalendar/icalendar plugin seems broken?
See original GitHub issueWhen I try installing @fullcalendar/icalendar to import ical formats into FullCalendar in a SvelteKit app, I get the following error:
ICAL is not defined
ReferenceError: ICAL is not defined
at node_modules/ical.js/build/ical.js (http://localhost:3000/node_modules/.vite/chunk-MWROEMAF.js?v=d2a4f7e5:9:12)
at __require (http://localhost:3000/node_modules/.vite/chunk-B7LZDY4N.js?v=d2a4f7e5:41:44)
at http://localhost:3000/node_modules/.vite/@fullcalendar_icalendar.js?v=d2a4f7e5:16:23
Any thoughts on a fix?
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
@fullcalendar/icalendar | Yarn - Package Manager
FullCalendar iCalendar Plugin. Display events from a public iCalendar feed. Installation. First, ensure ical.js is installed: npm install ical.js.
Read more >Fullcalendar layout broken because CSS loading after ...
The fullcalendar.js renders (and positions) calendar events. The positions are calculated wrong if the fullcalendar.css file is not yet loaded at that point ......
Read more >Full-calendar event not showing properly. How to fix?
I've recently added full-calendar to my website and noticed that the events are not shown correctly. for example: if the event is from...
Read more >Fullcalendar will not display | WordPress.org
Having issue getting the plugin working again. Uncaught TypeError and a bunch of jquery.qtip errors. Page loads event list fine, but Calendar spinner...
Read more >V4 Release Notes and Upgrade Guide - Docs v4 - FullCalendar
It is also the first time connector plugins to third-party libraries are offered. Major breaking changes: Removal of jQuery as a dependency. Consequently:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sbutler-gh @YogliB to recapitulate (so that you can put it somewhere) :
In case you want to use the fullcalendar/icalendar plugin, an issue might arise in projects where modules or strict mode are enabled (so, incidentally, with Svelte), and is caused by a dependency of fullcalendar (which is ical.js).
It is due to the fact that they assign a variable without declaring it.
A possible hotfix would be this :
postinstall.js
file at the same level as yourpackage.json
, with the following content :package.json
:This will patch the library after each
npm install
Here’s a repo reproducing the error (https://github.com/sbutler-gh/icalendar-bug). To reproduce:
git clone https://github.com/sbutler-gh/icalendar-bug.git
)npm run install
npm run dev
When I navigate to
localhost:3000
, the browser shows: