Page 1 of 1

ScheduleDemo fails with primereact 2.0.0-beta.3

Posted: 10 Sep 2018, 06:45
by vba66a
Hi,

Can you please check why fullcalendar is throwing errors:

Error in 3.9.0/dist/fullcalendar.js (9400:21)
el.addClass is not a function

Please check https://stackblitz.com/edit/react-hsha9 ... uleDemo.js - I just copy-pasted code from the page https://www.primefaces.org/primereact/#/schedule and updated dependencies.

I suspect it's fullcalendar issue .. Can you please check and confirm?

Thanks!!
VB

Re: ScheduleDemo fails with primereact 2.0.0-beta.3

Posted: 10 Sep 2018, 13:26
by merve7
Please try with fullcalendar 4.0.0-alpha or add jquery in package.json because we removed jquery and upgraded fullcalender in PrimeReact 2.0.0-beta.1

Re: ScheduleDemo fails with primereact 2.0.0-beta.3

Posted: 15 Sep 2018, 08:18
by vba66a
I updated dependency to "fullcalendar": "^4.0.0-alpha" .. no errors anymore but calendar was totally broken (styles were missing).
I added "import 'fullcalendar/dist/fullcalendar.css';" in my App.js and got another error (e is undefined).
Only after I installed jQuery as well, calendar start working as expected:
https://stackblitz.com/edit/react-hsha9 ... uleDemo.js

I guess you should update docs to inlcude this info.

Hope it helps,
VB

Re: ScheduleDemo fails with primereact 2.0.0-beta.3

Posted: 22 Sep 2018, 14:18
by cagatay.civici
That is strange because Schedule uses FullCalendar 4 which does not use jQuery, the live demo has no jQuery;

https://www.primefaces.org/primereact/#/schedule

Docs contain detailed information about setup like imports, necessary CSS and so on.