matt-goldman / Maui.Plugins.PageResolver

A simple and lightweight page resolver for use in .NET MAUI projects
MIT License
131 stars 12 forks source link

.NET 9 #42

Open IeuanWalker opened 4 hours ago

IeuanWalker commented 4 hours ago

Describe the bug Updated app to .net 9 getting the following error -

{System.InvalidOperationException: PushAsync is not supported, please use a NavigationPage.
   at Microsoft.Maui.Controls.Window.NavigationImpl.OnPushAsync(Page page, Boolean animated) in /_/src/Controls/src/Core/Window/Window.cs:line 706
   at Microsoft.Maui.Controls.Internals.NavigationProxy.PushAsync(Page root, Boolean animated) in /_/src/Controls/src/Core/NavigationProxy.cs:line 135
   at Microsoft.Maui.Controls.Internals.NavigationProxy.PushAsync(Page root) in /_/src/Controls/src/Core/NavigationProxy.cs:line 127
   at App.Features.Navigation.NavigationFeature.PushAsync(Page page) in D:\WS\Azure-CardiffCouncilICT\App\src\App\Features\Navigation\NavigationFeature.cs:line 70
   at Maui.Plugins.PageResolver.NavigationExtensions.<PushAsync>d__2`1[[App.Routes.WasteManagement.WasteCalendar.Pages.DisplayPage, App, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
   at App.Routes.WasteManagement.WasteCalendar.ViewModels.AddressSearchViewModel.Search() in D:\WS\Azure-CardiffCouncilICT\App\src\App\Routes\WasteManagement\WasteCalendar\ViewModels\AddressSearchViewModel.cs:line 89}

image

To Reproduce Will try to debug and see if i can see whats going on, just raising this incase anyone else has an idea

IeuanWalker commented 4 hours ago

Seams to be only an issue for pages that take in a parameter aswell