I am using vaadin 10. I would see this error on my login view class if I used @Route("") but when I write it as @Route(value="") it worked. But doing that to another view I get this error. Most questions asked are way too advanced. I just have a simple project with vaadin and springboot.
Could not navigate to "view"
2.3k views Asked by Tamim Khan At
2
There are 2 answers
1
On
With the source code you provided as link in the question's comments, I cannot reproduce your issue. However, there were 2 problems with your code before I was able to run the application:
- the
@Theme
annotation needs to be placed on a view or router layout; I moved it to yourLoginView
- the Valo theme is not available in Vaadin 10, so the reference on
ValoTheme
class was a compile error; I removed it
After fixing these problems everything ran fine, @Route(value="")
and @Route("")
were both working. Which Java version are you using? Java 8 is required minium for Vaadin 10. Also please try to remove lombok for testing, maybe it is causing a problem.
Try annotating your EmployeeDisplay class with
@Route(value = "employeeDisplay")
instead of@Route(value = "/employeeDisplay")
. In other words, remove the/
.