FullCalendar extension doesn't render, error in console

Trying out Vaadin again after a while. I have the latest version of Vaadin (and Quarkus) and the FullCalendar extension. I see the calendar in the DOM but rendering apparently fails because it’s not visible and in the console I can see

Uncaught TypeError: $0.setOption is not a function
    at Object.eval (eval at Ut (FlowClient-CK--iwNV.js:7296:13), <anonymous>:3:11)
    at Ut (FlowClient-CK--iwNV.js:7297:11)
    at Tt (FlowClient-CK--iwNV.js:6099:7)
    at Rt (FlowClient-CK--iwNV.js:2352:9)
    at vr (FlowClient-CK--iwNV.js:1652:7)
    at Rr.Sr [as eb] (FlowClient-CK--iwNV.js:8644:7)
    at EB (FlowClient-CK--iwNV.js:5564:15)
    at yr (FlowClient-CK--iwNV.js:7448:9)
    at Nr.Or [as C] (FlowClient-CK--iwNV.js:8633:7)
    at Qk (FlowClient-CK--iwNV.js:3731:15)
    at Vk.Xk [as db] (FlowClient-CK--iwNV.js:8109:7)
    at Pn.Qn [as I] (FlowClient-CK--iwNV.js:8346:14)
    at FlowClient-CK--iwNV.js:5374:14

any pointers?

1 Like

Which versions of Vaadin and the Full Calendar Addon are you using?

Hi and thanks for your reply. 24.5.0 / 6.2.2

Started with the quarkus base app from vaadin start. Added Vaadin Directory Repository. Added FullCalendar dependency. Modified MainView to include a Calendar.

Doing the same thing with the skeleton-servlet version does show the calendar so it probably has something to do with Quarkus integration.

I also tried uncommenting the jandex-dependency (although the comment spoke of Pro components) but that didn’t even compile (java.lang.ClassNotFoundException: com.vaadin.flow.component.map.MapBase)

Most likely the add-on does not provide a jandex index. Did you try to configure application.properties to index the artifact?

2 Likes

Ah, thanks for the pointer - that did it. Having the jandex dependency and plugin only produces random reflection errors but the application.properties configuration fixed it.