MonoBehaviour is red but no error in console How to debug?

I have tried with no success.

  • Unity, go to Edit < Preferences < External Tools (left part of the Window) Visual Studio 2019

  • Project > Reimport All

  • Updating VSCode package: Window > Package Manager > Visual Studio Code Editor

  • And also Visual Studio Editor

I did not understand well this process:

I left this project because of this error. But now I’m trying to fix it. Hours trying to find the origin: 16hs

SOLUTION
This is odd; I do not understand why but
If I copy my project and open it using the Unity Hub, the problem is fixed.

Any Clue?
I make a compare and these are some different files plus a mygame.sln

7343003--893549--difference.png