enabled is not a member of 'UnityEngine.Component

I have this script:

function Update(){

if (Input.touchCount  > 2) {
        GetComponent("look at object").enabled = true;
}
}

It works great in unity window, but when i build i get this error BCE0019: ('enabled' is not a member of 'UnityEngine.Component'.). Why does this happen and how can i fix it?

Don't use quotation marks. "look at object" is not the name of a class; a class can't have spaces in its name. Figure out what it is, and then use the generic form of GetComponent, which will return whatever type the component is, and not a Component.

function Update(){

    if (Input.touchCount  > 2) {
            GetComponent.<TheRealNameOfYourClass>().enabled = true;
    }
}

var blah = myCamera.GetComponent.();
blah.enabled = false;

I have to same problem for

GameObject.Find(“car”).GetComponent(“enter and exit car”).Enabled=true;