tidev / liveview

Titanium LiveTi (live preview of Titanium applications on device)
Other
7 stars 3 forks source link

fix: fix node.js 20+ compatibility with commander.js #230

Closed hansemannn closed 3 months ago

hansemannn commented 4 months ago

Adds support for Node.js 20+ and this error:

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/v/.nvm/versions/node/v20.11.0/lib/node_modules/titanium/src/cli.js:927:32)
    at async file:///Users/user/.nvm/versions/node/v20.11.0/lib/node_modules/titanium/src/cli.js:810:4
    at async Command.parseAsync (/Users/user/.nvm/versions/node/v20.11.0/lib/node_modules/titanium/node_modules/commander/lib/command.js:1092:5)
    at async CLI.go (file:///Users/user/.nvm/versions/node/v20.11.0/lib/node_modules/titanium/src/cli.js:532:3)
    at async file:///Users/user/.nvm/versions/node/v20.11.0/lib/node_modules/titanium/src/main.js:8:2
janvennemann commented 3 months ago

Closing since this issue is related to the next branch of Liveview