MenuItem "Class name is not valid at this point" error
See original GitHub issueDescribe the bug
Having a MenuItem tag inside of the C# code block tag causes intellisense error “Class name is not valid at this point”. Possibly caused by MenuItem being a self closing tag. It doesn’t cause compilation error though.
Steps to reproduce (please include code)
Example code that causes an error:
@{
<MenuItem Key="dashboard" RouterLink="@(Routes.Dashboard.Page)" RouterMatch="@NavLinkMatch.Prefix">
<Icon Type="group" Theme="outline"/>
<span>Dashboard</span>
</MenuItem>
}
Further technical details
- AntDesign Nuget Package version: 0.8.0
- The IDE (VS / VS Code/ VS4Mac) you’re running on, and it’s version: Rider 2021.1.2
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
I am trying to implement menuitem in react but getting error
First, Button and Menu are not defined so import them: ... Also make sure to add state.open: false to the constructor.
Read more >Blazor syntax error "Class name is not valid at this point"
It seems like having a MenuItem tag wrapped with a C# @{} code block is enough to cause this. Even though it compiles...
Read more >MenuItem Class (System.Windows.Controls)
This is a dependency property. (Inherited from UIElement). IsEnabledCore. Gets a value that indicates whether the IsEnabled property is true for the current ......
Read more >Error: “Interface name is not valid at this point”
If you ever get the Visual Studio error: “Interface name is not valid at this point”, it's a simple fix. You have a...
Read more >JSDoc: Widget: menu
A jQuery UI widget that implements either a popup menu or menu bar. The menu bar and menu implementation roughly follows traditional desktop ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@seagullcz I reported it to JB, they are already aware of this issue, but there is no clear indication of when it will be fixed. It is probably a very low priority for them.
Hello @danich93 .
Do you have any news about this issue from JetBrains or Ridder forum? I am dealing with this error right now and and it is bloody annoying.