For some reason my blazor maui hybrid app is just showing a blank window my routes.razor is this is inside my PasswordManager.App
<Router AppAssembly="@typeof(MauiProgram).Assembly"
AdditionalAssemblies="new[] { typeof(PasswordManager.Components.Shared._Imports).Assembly }">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not Found</PageTitle>
@{
NavigationManager.NavigateTo("/login", replace: true);
}
</NotFound>
</Router>
Main page is just the standard code
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:PasswordManager.App.Components"
x:Class="PasswordManager.App.MainPage">
<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html">
<BlazorWebView.RootComponents>
<RootComponent Selector="#app" ComponentType="{x:Type local:App}" />
</BlazorWebView.RootComponents>
</BlazorWebView>
</ContentPage>
Code Behind
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
}
But for some reason, the app is only showing a white screen from this CreateWindow statement.
public partial class App : Application
{
public App()
{
InitializeComponent();
}
protected override Window CreateWindow(IActivationState? activationState)
{
return new Window(new MainPage()) { Title = "1Password" };
}
}
When it should be showing my login route, it’s not. The only thing is that my login route is inside PasswordManager.Components.Shared, but it doesn’t give an error saying the route is not found. I picked a blazor class libary
No error shows in the console either

<CascadingAuthenticationState><Router ...> <Found ...> <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)" /> <FocusOnNavigate ... /> </Found>....</Router></CascadingAuthenticationState>