-
Notifications
You must be signed in to change notification settings - Fork 3
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
Problem with Spring skeleton of Vaadin 24.5.4 #2471
Comments
Thanks for issue! Vaadin 24.4 changes the default location of frontend folder from project's root folder to What kind of view/file is created by Also, how the application fails to start? Do you have any server side exception or browser errors? Please also share a minimal reproducible example project. |
What kind of view/file is created by New->Other->Vaadin->Vaadin 10+ Design (Vaadin Designer plugin I guess?), is it a Lit-based view? Yes Starting by the first time the application (without views) is successful. But adding a view (myview.ts) in ./src/main/frontend/views the following message is shown: This application has no explicit mapping for /error, so you are seeing this as a fallback. Tue Nov 19 17:59:07 CET 2024 Failed to find the following files: Locations searched were: After, I deleted the view, and stop and run the application, and the message is: [plugin:vite:import-analysis] Failed to resolve import "@vaadin/hilla-frontend" from "src/main/frontend/generated/connect-client.default.ts". Does the file exist? I also tested to put the view in ./src/main/frontend but the problem persists. Since I solved the problem by using an earlier version of Vaadin, my intention here is merely to report the issue. Thanks again. |
What looks suspicious here is
The log message should not report the Please, double check that the Java component has the correct path in the However, if it is |
I manually manipulated the path to |
@jalmenUAL can you confirm that |
Yes. I confirm. |
Description of the bug
Hi,
I recently downloaded the latest version of Vaadin (Flow-Java-Maven-Spring) from start.vaadin.com. While working on my project, I encountered an issue when placing my views in the src/main/frontend/views folder, as README suggests. Despite several attempts, the application failed to start correctly and seemed unable to locate the views in that directory.
I am unsure whether this behavior is expected in the latest version. I tried placing the views in various other locations but was unable to resolve the issue.
Subsequently, I downloaded version 23.2 from the repository and noticed that it includes a frontend folder (as in older versions) in the root directory of the project—something that appears to be missing in version 24.5.4. After moving my views to this frontend folder, the application worked as expected.
Could you clarify whether this is an intended change in the latest version, or if there is another recommended approach for structuring the views?
Thank you in advance for your assistance.
Best regards,
Expected behavior
The application should show the default application in localhost:8080
Minimal reproducible example
Run application as default is Ok.
Create a view with New->Other->Vaadin->Vaadin 10+ Design, placing
it at src/main/frontend/views (I tested also src/main/frontend, META-INF and META-INF/frontend)
The MainView.java is not modified.
Run application does not work.
Versions
The text was updated successfully, but these errors were encountered: