(ReferenceError) : startAnimator is not defined
usually means that the required javascript files are not correctly loaded.
If your application is a spring boot application add this to Application.java
@Bean
public ServletRegistrationBean registerComponentAnimations() {
return new ServletRegistrationBean(new ResourceLoaderServlet(), "/frontend/compani/compani.js");
}
Jetty is our application server <jetty.version>9.4.28.v20200408</jetty.version>
Servlet annotation
@WebServlet(urlPatterns = "/web/*", name = "CompassServlet", asyncSupported = true, loadOnStartup = 1, initParams =
{
// number of seconds between heartbeat request from the UI, non-positive value disables heartbeats
@WebInitParam(name = InitParameters.SERVLET_PARAMETER_HEARTBEAT_INTERVAL, value = "60"),
// should session be closed when all UI have been idle. UI is idle if it is open with no activity other than heartbeat requests
// if closedIdleSession=false, then heartbeats keep session alive as long as client side UI is open.
@WebInitParam(name = InitParameters.SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS, value = "false")
})
it seems the custom servlet is preventing the animation javascript file from being loaded. First try out version 1.1.2 of company.
If it still does not work, you will see in the development console of your browser (network tab) that the compani.js file is not loaded. Please post the uri of the missing file (should be something like /web/compani/compani.js).