The generate-clients script calls the createFromRoot method from codama with two parameters. However, the method seems to accept only one.
import * as c from 'codama'
import { rootNodeFromAnchor } from '@codama/nodes-from-anchor'
import { getAllProgramIdls } from './utils.mjs'
// Instantiate Codama.
const [idl, ...additionalIdls] = getAllProgramIdls().map((idl) =>
rootNodeFromAnchor(require(idl)),
)
// ❌ The `createFromRoot` method only accepts 1 parameter
const codama = c.createFromRoot(idl, additionalIdls)