Get component null in editor mode

I get this when I click on any node in editor mode but I works fine at runtime. How can I stop compilation in editor mode as it’s annoying.