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
Environment
Symptom
Cloud Commander exits during startup: