Getting readarray error when trying to use exercism

I’ve installed the CLI and exercism is in my path but when I try to run any command I get this error:

exercism:2: command not found: readarray

I’m using zsh in ubuntu.

Could you run the following commands and share the outputs?

type -a exercism
file "$(type -p exercism)"

I suspect you’re trying to run a bash function inside zsh.