Skip to content

Cloud Commander 18.0.0 fails on Node.js 22 with TypeError: validateArgs is not a function #468

Description

@jorgeoroz

Environment

  • Cloud Commander: 18.0.0
  • Node.js: 22.23.1
  • npm: 10.9.8
  • Operating system: Ubuntu Server

Symptom

Cloud Commander exits during startup:

TypeError: validateArgs is not a function

Reproduction
npm install -g cloudcmd@18.0.0
cloudcmd --no-open
Relevant code
const validateArgs = await simport('@putout/cli-validate-args');

In the tested environment, the returned value is a module object rather than the callable named export.

Workaround

Changing the import to the named export resolves the startup failure:

const {validateArgs} = await import('@putout/cli-validate-args');
Expected result

Cloud Commander should resolve and invoke the validateArgs function consistently on supported Node.js versions.

Additional context

Version 18.0.0 was evaluated as an offline-compatible alternative because later browser assets may depend on external runtime module delivery.

A documented and reversible workaround is available here:

https://github.com/jorgeoroz/cloudcmd-offline-fix

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions