-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Blazor app doesn't load after upgrade to 3.0-preview4/preview5 #10578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @3x0dv5 for helping out here! @vova-lantsov-dev I'm hoping the pointers from @3x0dv5 are enough to get you unblocked. If you're still hitting issues that you think are problems we need to address in Blazor please let us know! |
@3x0dv5 for After changing .csproj file to what you showed it still does not work Application is running well but not responding at all. I also commented |
Can you please create PR to my repo so I can try to make things work? |
@3x0dv5 and also tell me your VS, .NET Core SDK and Blazor extension versions. I'd like to compare them with mine |
I found the same issue from 2018: https://github.com/aspnet/Blazor/issues/307 |
@danroth27 , any suggestion? Is VS 2019 16.2.0 Preview 1.0 supported? According to issue I sent above, there should be a problem with Razor compiler. |
@vova-lantsov-dev Yes, VS2019 16.2 Preview 1 should be fine. Let me take a quick look at your repo. |
@danroth27 I can also give you remote access to my PC so you can take a look there |
@vova-lantsov-dev I sent you a PR that gets the initial page to render: vova-lantsov-dev/bookkeeping-blazor#4. The tricky issue that had me stumped for a bit was that the initial page wasn't rendering because the namespace was missing for the Router component in App.razor. This problem will become easier to diagnose once we fix #9860. I'm sure there's more stuff to fix up, but hopefully this will get you unblocked. |
@danroth27 thank you, now it makes sense. I also know that there is an issue that components are not visible when usings are declared in _Imports.razor . Is it already reported or I should create new issue? |
That's expected. Layouts in Blazor are components defined by their own class. So using statements in the layout won't flow into individual pages. To propagate using statements across components you should use _Imports.razor. |
I have latest extension installed from here. Also VS 2019 16.2.0 Preview 1.0 installed. Code migrated from 0.7.0 using official migration guide.
My app can't load. Only router exists inside

<app>
.Nothing useful in console

Debugging gives me no information at all

My project is available here (branch called feature-blazor-3.0.0-preview4)
Please help me determine what goes wrong. I added some logging inside OnInit(Async) methods of my pages, but they're never called. I tried to play with Startup file of Server project, but nothing changed.
dotnet --info output:
The text was updated successfully, but these errors were encountered: