Route not found after recompiling and reloading a page
See original GitHub issueSometimes, recompiling and reloading a page causes NotFoundException
and leads to the available routes page. It doesn’t happen all the time. It’s likely to happen when the CPU is busy. I can reproduce it with a plain servlet app with the Maven Jetty plugin.
Vaadin version: 14.1.18 OS: macOS Catalina 10.15.3 Browser: Chrome 80 IDE: IntelliJ IDEA Ultimate 2019.2
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
React-router URLs don't work when refreshing or writing ...
The historyApiFallback is what fixed this issue for me. Now routing works correctly and I can refresh the page or type in the...
Read more >.NET Hot Reload support for ASP.NET Core | Microsoft Learn
NET Hot Reload applies code changes, including changes to stylesheets, to a running app without restarting the app and without losing app state....
Read more >Hot reload - Flutter documentation
Hot reload works by injecting updated source code files into the running Dart Virtual Machine (VM). After the VM updates classes with the...
Read more >Hot Reload | Vue Loader
"Hot Reload" is not simply reloading the page when you edit a file. With hot reload enabled, when you edit a *.vue file,...
Read more >Hot Module Replacement - webpack
This guide extends on code examples found in the Development guide. ... Since webpack-dev-server v4.0.0, Hot Module Replacement is enabled by default.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a timing issue: When you do not have fast enough computer, this keeps occurring regularly.
For example, on my 4-core 3.3GhZ i5 iMac with 16GB memory and 4TB SSD, route is lost every time one makes a code change to a view. Thus Spring DevTools and reload is completely broken on anything but the latest computers. If you take 2020 MacBook Pro with 8 core i9, reload works reliably; except if you happen to be streaming video at the same time.
My environment where bug can be reproduced reliably:
To reproduce
idea pom.xml
add(new Button("Foo"));
to end ofMainView
method.This is a known bug in Spring Devtools: https://github.com/spring-projects/spring-boot/issues/19543
Proposed fix: In the “Could not navigate to” view, explain the issue and link to documentation that explains how to work around this by using other available options for reload until underlaying Spring Devtools issue is fixed
Tailored Spring add-on’s “route-not-found” page to show an explanatory message as suggested in https://github.com/vaadin/flow/issues/7822#issuecomment-659712226.