Skip to content

TypeError: undefined is not iterable #535

@FantasyBits

Description

@FantasyBits

Hi, I installed a Godot plugin, and after running npm run dev I got the following error.

file:///.../node_modules/@godot-js/godot-ts/dist/index.js:20
`;for(let{name:a,returnType:s,params:c}of e.functions)n+=`  call(fn: "${a}"${c.length?", ":""}${c.map(({name:p,type:d})=>`${p}: ${d}`).join(",")}): ${s};
                                           ^

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at Q (.../node_modules/@godot-js/godot-ts/dist/index.js:20:44)
    at Command.ot (.../node_modules/@godot-js/godot-ts/dist/index.js:133:232)

Node.js v25.6.1
ELIFECYCLE Command failed with exit code 1.

I think there is a missing guard clause on line 45 of generate-types.ts.
Please help fix this issue, 3q.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions