Error: Maximum call stack size exceeded when playing animations

Hello, not sure if it’s the right solution, but maybe this helps…

player.on("animationcomplete", () => {
    player.anims.play(this.playerAtlas + "-run");
    player.off("animationcomplete");
});