align() parameters error

Rive has this example for align:

found here https://rive.app/docs/runtimes/web/low-level-api-usage#align-and-render

We are bringing Rive into our canvas framework and it was working up to canvas-advanced 2.21 then in 2.22 and beyond it is giving an error saying:

So… good perhaps but our code is this:

We are only passing in 4 arguments.

Any idea what might be happening. Worked in 2.21 and causes error in 2.22