Hello.
I created a spring boot project at https://vaadin.com/start/latest.
I created a new page by design: /frontend/src/login-view.js, checking to create a java companion file.
In the LoginView.java file I set the header as follows:
@PageTitle("login-view")
@Route(value = "login-view")
@Tag("login-view")
@JsModule("./src/login-view.js")
public class LoginView extends PolymerTemplate<LoginView.LoginViewModel> { ... }
MainView.java looks like this:
@Route
@Viewport("width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes")
@PWA(name = "Project Base for Vaadin Flow with Spring", shortName = "Project Base")
public class MainView extends VerticalLayout { ... }
however is returning me the following message:
Could not navigate to 'login-view'
Reason: Couldn't find route for 'login-view'
Available routes:
<root>
This detailed message is only shown when running in development mode.
What was left to do? For these are the ways I do in vaadin 13.
Tanks.