question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MenuItem "Class name is not valid at this point" error

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
danich93commented, Sep 11, 2021

@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.

0reactions
seagullczcommented, Sep 11, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found