Non-invocable member 'Teleport' cannot be used like a method.

It says "
Non-invocable member ‘Teleport’ cannot be used like a method." and I don’t know how to fix it

Edit: forgot to tell that a dude in a discord server helped me fix it

Is your Teleport a Coroutine? :open_mouth:

let us also see the “Teleport” Function

Here’s my whole script for it :))
(I watched a tutorial and followed his code)

 public GameObject Portal;
    public GameObject Player;
    // Start is called before the first frame update
    void Start()
    {
      
    }

    // Update is called once per frame
    void Update()
    {
      
    }
    public void OnTriggerEnter2D(Collider2D other)
    {
        if(other.gameObject.tag == "Player")
        {
            StartCoroutine (Teleport());
        }
    }

        IEnumerator yes()
        {
                yield return new WaitForSeconds (1);
                Player.transform.position = new Vector2(Portal.transform.position.x,Portal.transform.position.y);
        }

}

Or more broadly…

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

How to understand compiler and other errors and even fix them yourself:

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: Using code tags properly

I would suggest going back and looking at that tutorial again, or if this is exactly what they did then maybe go to a different tutorial as what you have provided definitely does not work. You are trying to start a coroutine called Teleport, but nowhere in your script do you have a coroutine method named Teleport. Instead you seem to have named your coroutine (IEnumerator) yes.
Either change this line:

IEnumerator yes()

to be:

IEnumerator Teleport()

Or go back to the tutorial and make sure you have followed exactly what they have done. If you have, and they have made this same mistake then they should be correcting it later in the tutorial - if they don’t then you should not continue following the tutorials if this is the quality of stuff they put out.