Error Teleports 2D with Warps

Hello unity community! I have a problem with some warp to create a teleport. I put the code that I will leave you next, and in the console, when I play the warp with “player” it does not write the text in the console, so the teleports will not work. Can someone solve it for me? Thank you.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Warp : MonoBehaviour {

    public GameObject target;

    void OnTriggerEnter2D(Collider2D other){
        if(other.tag == "player"){
            print("ha chocado el jugador");
        }
    }

}

check if both your objects have colliders and your player has the tag “player”

Hello,… how I send you a photo?