-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file-routes.json cannot be found #2408
Comments
this actually affects my application with the following steps.
in the build log, i have the same exception as mentioned in the original post |
@ZheSun88 I haven't looked into this yet, but that error log is only happening when a clean app (mostly when a newly created one) is started as the result of an eager attempt for initializing the |
I can create a separate issue if necessary.. |
Create a new issue, we need to fix this first to avoid that everybody associates all new issues with this stack trace when no other stack trace is shown |
I think it is related to the fact that the Flow view has a route template parameters
If you replace the |
@mcollovati then it seems the problem comes from the app itself than flow/hilla? if so, we need to fix that in start project on how to generate this project. |
I'm not sure. The |
aww.. okay.. anyway.. i will make this to another ticket.. :-) |
* fix: ignore absence of file-routes.json at startup in dev mode Fixes #2408 * apply suggestions from code review * Update packages/java/endpoint/src/main/java/com/vaadin/hilla/route/ClientRouteRegistry.java Co-authored-by: Artur <artur@vaadin.com> --------- Co-authored-by: Zhe Sun <31067185+ZheSun88@users.noreply.github.com> Co-authored-by: Artur <artur@vaadin.com>
* fix: ignore absence of file-routes.json at startup in dev mode Fixes #2408 * apply suggestions from code review * Update packages/java/endpoint/src/main/java/com/vaadin/hilla/route/ClientRouteRegistry.java Co-authored-by: Artur <artur@vaadin.com> --------- Co-authored-by: Zhe Sun <31067185+ZheSun88@users.noreply.github.com> Co-authored-by: Artur <artur@vaadin.com>
… (CP: 24.4) (#2426) fix: ignore absence of file-routes.json at startup in dev mode (#2423) * fix: ignore absence of file-routes.json at startup in dev mode Fixes #2408 * apply suggestions from code review * Update packages/java/endpoint/src/main/java/com/vaadin/hilla/route/ClientRouteRegistry.java --------- Co-authored-by: Soroosh Taefi <taefi.soroosh@gmail.com> Co-authored-by: Zhe Sun <31067185+ZheSun88@users.noreply.github.com> Co-authored-by: Artur <artur@vaadin.com>
This ticket/PR has been released with Hilla 24.4.0.beta3 and is also targeting the upcoming stable 24.4.0 version. |
This ticket/PR has been released with Hilla 24.5.0.alpha1 and is also targeting the upcoming stable 24.5.0 version. |
Describe the bug
Each Vaadin 24.4 application, that contains Hilla, shows this exception on startup, complaining about
file-routes.json
file not found:This, however, doesn't affect the application behaviour and most likely an intermediate state during the build, when this file isn't created yet.
Related-to #2358 (comment), as a possible way to fix it, this exception can be ignored in the
ClientRouteRegistry
.Expected-behavior
No exception
Reproduction
Any Hilla or Flow+Spring-Boot starter for Vaadin 24.4.
System Info
Vaadin 24.4.0.beta2
The text was updated successfully, but these errors were encountered: