Open mvysny opened 4 years ago
Related to #8615
Interestingly, this only happens when using jetty-runner (downloaded from https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-runner/9.4.33.v20201020/jetty-runner-9.4.33.v20201020.jar ) - the rapid reload doesn't happen when running from Tomcat.
The rapid reload can be verified on skeleton-starter v14 as well, by using the following MainView:
@Route("")
@Push
public class MainView extends VerticalLayout {
public MainView() {
add(new Button("Buy Ticket"));
}
}
Curiously, skeleton-starter doesn't exhibit the TypeError: i.register is not a function
.
Also, the problem can not be reproduced when running mvn -C clean package -Pproduction jetty:run
. The problem can only be reproduced with jetty-runner for some reason.
Description of the bug
A simple Vaadin example app built in production mode with push starts to rapidly reload in the browser when the WAR is running using jetty-runner.
The same app works correctly when launched in dev mode (e.g. in Intellij + Tomcat), or via
./gradlew clean build appRun
.Minimal reproducible example
./gradlew clean build -Pvaadin.productionMode
build/libs/vaadin-coroutines-demo.war
with jetty-runner.Expected behavior
The page should load
Actual behavior
The page rapidly reloads in the browser. Also, Vaadin fails to initialize:
Moreover, when hosted locally on jetty-runner, the page starts to reload rapidly. I'll attach a video soon.
Versions: