Animation works using react-canvas but broken using react-webgl2

Just as the title says, I’m working on an animation that runs correctly on the editor in preview.

But when I tried rendering it using react-webgl2, the animation didn’t play, but I tried using react-canvas, and it worked.

pb.rev