ScheduleDemo fails with primereact 2.0.0-beta.3

UI Components for React
Post Reply
vba66a
Posts: 16
Joined: 25 Jun 2018, 05:22

10 Sep 2018, 06:45

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

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

10 Sep 2018, 13:26

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

vba66a
Posts: 16
Joined: 25 Jun 2018, 05:22

15 Sep 2018, 08:18

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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Sep 2018, 14:18

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.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests