Skip to content

Current commander version causes build failure #759

@hansemannn

Description

@hansemannn

When using ti serve -p ios with the latest CLI (and older as well), the build fails:

TypeError: Cannot read properties of undefined (reading 'commands')
    at Module.config (/Users/user/.nvm/versions/node/v18.19.0/lib/node_modules/liveview/dist/node/commands/serve.js:28:46)
    at CLI.loadCommand (file:///Users/user/.nvm/versions/node/v20.18.1/lib/node_modules/titanium/src/cli.js:946:32)
    at async file:///Users/user/.nvm/versions/node/v20.18.1/lib/node_modules/titanium/src/cli.js:829:4
    at async Command.parseAsync (/Users/user/.nvm/versions/node/v20.18.1/lib/node_modules/titanium/node_modules/commander/lib/command.js:1092:5)
    at async CLI.go (file:///Users/user/.nvm/versions/node/v20.18.1/lib/node_modules/titanium/src/cli.js:532:3)
    at async file:///Users/user/.nvm/versions/node/v20.18.1/lib/node_modules/titanium/src/main.js:8:2

Updating the commander usage fixes the issue, but I'm not sure where exactly it's used here, maybe @cb1kenobi knows more?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions