stefanuebe/vaadin-fullcalendar

FullCalendar shows JavaScript Errors "xyz is not a function"

Closed this issue · 8 comments

Hi team,

When I applied fullcalendar 4.1.2, an error occured as shown below.
截屏2022-06-08 下午6 04 15

Then I opened FlowClient.js, but I didn't find any function called setOption. I guess it is caused by incompatible vaadin-bom version. If not, do you know the cause?

Here is my code:

@PageTitle("name1")
@Route(value="name1", layout=MainLayout.class)
public class CalendarLayout extends VerticalLayout {
       public CalendarLayout() {
              add(FullCalendarBuilder.create().build());
       }
}

Regards

Hi, I'll check it tomorrow and see, if a fix is necessary

Hi,
sorry but I can't look at this. I'll be in mexico untill the end of July

Hi, I'll check it tomorrow and see, if a fix is necessary

Sorry, I found the cause. It is caused by my local env. Please ignore this issue.

Hi, sorry but I can't look at this. I'll be in mexico untill the end of July

It doesn't matter. Thanks for your reply.

I can reproduce the issue in some way in 23.1.0. What was the reason / solution at your system?

In my case it was the whitelist in the application properties. Extending it with the proper package solved the issue. I will add that issue to the Wiki FAQ.

Webapps application.properties

vaadin.whitelisted-packages=other.packages.whatsoever,org.vaadin.stefan

Webapps application.properties

vaadin.whitelisted-packages=other.packages.whatsoever,org.vaadin.stefan

The same reason as you. Thanks for your time.