Hello everyone,
Recently I have been working on a project where we wanted build all of our Components in a separate library. When we do this, we get the purple squiggly line stating "Found markup element with unexpected name 'TelerikMenu'. If this is intended to be a component, add a @using directive for its namespace."
This is what we include in our _Imports.razor for the Library itself:
@* Telerik. *@@using Telerik.Blazor@using Telerik.Blazor.Components
This is one of our Components - MainMenu.razor:
@namespace Component.Menu@inherits MainMenuBase@using ViewModel.MainMenu<TelerikMenu Data="@MenuItems" ItemsField="@nameof(MainMenuViewModel.SubMenuList)" TextField="@nameof(MainMenuViewModel.Name)" UrlField="@nameof(MainMenuViewModel.Page)" ImageUrlField="@nameof(MainMenuViewModel.IconUrl)" IconField="@nameof(MainMenuViewModel.Icon)" IconClassField="@nameof(MainMenuViewModel.IconClass)" Orientation="@MenuOrientation.Horizontal" />
When we compile the project, it runs just fine, but we were really looking for a way to make sure these Messages do not show up. It also makes it so Intellisense does not find all of the Parameters available to a Telerik Component.
All C# code is in full Code-Behind and why it is not posted here. The C# has no problems at all with Errors, Warnings, or Messages.
Thank you for your time,
Jesse