I cant add ...Script in to my prefabs script

For example im writing Main main; for use the variable in Main Script, but in the Prefab section i cant add the player (gameobject contains Main Script) to the “main”, when i try add from the circle at the right of variable, it writes mismatch but when i carry the prefob in to hierarchy it works.

// paste said code here

How can i fix it?