CompositeVideoClip -> resize () issue

I’ve been working on a video generation project in which I try to use resize function of CompositeVideoClip, but getting an error: “Cannot access member “resize” for type “CompositeVideoClip”
Member “resize” is unknown”

I believe it’s a Replit environment issue. Any ideas how to solve it?

This seems more like a Class problem than an environment problem.

Can you provide the link to your repl?