Help me fix obsolete error

Well i am having problems with scripts saying commands are obsolete i tryed using

 var renderer = GetComonent<Renderer>();

but it wont help.

There is a function called GetComponent(), but none called GetComonent() - notice the missing letter ā€˜p’. Try declaring the variable first followed by assignment:

var renderer : Renderer;
renderer = GetComponent.<Renderer>();

More details on valid or deprecated functions can be found in the Unity reference https://docs.unity3d.com/ScriptReference/Component.GetComponent.html

!

!

The error says :
Assets/Trig.js(6,10): BCE0031: Language feature not implemented: Ambiguous(Trig.renderer, UnityEngine.Component.renderer).