This happens when the enemy location isn't being detected within melee range normally a height issue. You see the mob in front of you and can walk right up to it but it's position isn't identified correctly.