"The page cannot render" for user management pages

I used the "Blazor CRM app" to create a new project. This resulted in 27 razor pages being generated. When I open four of the pages in Blazor Studio, I get the message "The page cannot render" with the error:

/Users/jw/Repos/team-keel/Client/Pages/AddApplicationRole.razor.cs(16,30): error CS0102: The type 'AddApplicationRole' already contains a definition for 'JSRuntime'

The pages are:

  • AddApplicationRole.razor
  • AddApplicationUser.razor
  • ApplicationRoles.razor
  • ApplicationUser.razor

How do I address this issue?

A couple of other points: This issue looks similar, but I did not find that it helped me.

I ran the "Anaylze" utility as specified in the "Troubleshooting" page. The report shows that the four pages failed page rendering, which makes sense.

Check my reply in your other thread:

Your advice in the other thread corrected the issue. Thank you.