You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing UI.getCurrent().navigate(DefaultView.class, param); (DefaultView is in routes, I checked in the debugger):
com.vaadin.flow.router.NotFoundException: No route found for given navigation target!
at com.vaadin.flow.router.RouteConfiguration.getUrlForTarget(RouteConfiguration.java:522)
at com.vaadin.flow.router.RouteConfiguration.getUrl(RouteConfiguration.java:476)
at com.vaadin.flow.router.RouteConfiguration.getUrl(RouteConfiguration.java:450)
at com.vaadin.flow.component.UI.navigate(UI.java:865)
The text was updated successfully, but these errors were encountered:
Thank you for letting me know! In your WeldMockVaadinServlet.createServletService() you need to also call routes.register(service.context as VaadinServletContext), right before the return statement. Please take a look at the MockVaadinServlet class.
I'm getting RouteNotFound Errors after upgrading from 1.1.x to 1.2.8.
We're setting up with 2 packages:
initializing our own Servlet because we need weld:
Servlet and Service look like this:
When doing
UI.getCurrent().navigate(DefaultView.class, param);
(DefaultView is in routes, I checked in the debugger):The text was updated successfully, but these errors were encountered: