RouteConfiguration giving an error for the AuthService class

private void createRoutes(Role role) {
                .forEach(route ->
                        RouteConfiguration.forSessionScope().setRoute(route.route, route.view, HomeView.class));
this is in my auth service class that im using for signup in my website

I do not understand what this means can anyone help?

i also have ```java
public record AuthorizedRoute(String route, String name, Class<? extends Component> view) {


route.view is not a component

nvm fixed the issue was that Homeview had a predefined route