FlowingCode / SimpleTimerAddon

Vaadin Flow integration of https://github.com/annsonn/simple-timer
Apache License 2.0
5 stars 3 forks source link

$0.start is not a function error #21

Closed paodb closed 2 years ago

paodb commented 3 years ago

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 2 years ago

Problem solved (at least avoided by commenting the vaadin.whitelisted-packages= in application.properties

paodb commented 2 years ago

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