GetComponent Error

Hi…
I’ll get this error :
BCE0023: No appropriate version of ‘UnityEngine.GameObject.GetComponent’ for the argument list ‘(function(): void)’ was found.
What’s problem in my Java Script file?

I just ran into this same error. Turns out it was because the script I was attempting to access from another GameObject had the same name as a function/void I had in the script I was trying to access it from.