RouteConfiguration giving an error for the AuthService class

private void createRoutes(Role role) {
        getAuthorizedRoutes(role).stream()
                .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
![image.png|708x177](upload://usqlrr9X2zNEW044aLrhaSozr1P.png)

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