$0.start is not a function error
Closed this issue · 2 comments
paodb commented
From directory:
Im getting a
(TypeError) : $0.start is not a function
in an error popup when using it as
SimpleTimer timer = new SimpleTimer(new BigDecimal("1")); layout.add(timer); timer.start(); timer.addTimerEndEvent(ev-> Notification.show("Timer ended"));
Second message added more information:
I'm using Vaadin 21.0.0 with Spring boot 2.5.4.
Antho1989 commented
Problem solved (at least avoided by commenting the vaadin.whitelisted-packages= in application.properties
paodb commented
Hello @Antho1989 sorry for the delay on this. Instead of removing you could update the whitelisted property adding
com.flowingcode.vaadin.addons
to it as it's mentioned here. It will look something like this:
vaadin.whitelisted-packages = com.vaadin,org.vaadin,dev.hilla,com.example.application,com.flowingcode.vaadin.addons