Skip to content
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

Found markup element with unexpected name 'Routes' #10526

Open
robbiedigitalplanning opened this issue Jun 24, 2024 · 1 comment
Open

Found markup element with unexpected name 'Routes' #10526

robbiedigitalplanning opened this issue Jun 24, 2024 · 1 comment

Comments

@robbiedigitalplanning
Copy link

robbiedigitalplanning commented Jun 24, 2024

When creating a new Blazor project with Identity and interactivity, the following error is shown in App.razor:
Found markup element with unexpected name 'Routes'. If this is intended to be a component, add a @using directive for its namespace.

Steps to reproduce:

  1. Using dotnet CLI run dotnet new blazor -au Individual -ai true
  2. Open project in VSCode
  3. View App.razor

The project builds and runs just fine, but the error is annoying and confusing to new users.

Adding using command to App.razor does not resolve the issue.
@using Microsoft.AspNetCore.Components.Routing

@phil-allen-msft
Copy link
Contributor

We're sorry you are running into this. We likely have a change in the works that should help to resolve this; you can follow the status on #10547 and we will update it with a VS Code build number when we know what the specific version is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants