Skip to content

Error when opening the shell #44

@bitsnaps

Description

@bitsnaps

For some reasons, the shell command is broken, I get this when running puter shell

❯ puter shell
file:///path/to/puter-cli/src/executor.js:159
  const [cmd, ...args] = input?input.split(' '):[];
                                     ^

TypeError: input.split is not a function

The input variable is an empty object here: {}.

Running puter alone ends with:

❯ puter
Welcome to Puter-CLI! Type "help" for available commands.
puter@bitsnaps/Documents> node:internal/event_target:1101
  process.nextTick(() => { throw err; });
                           ^

TypeError: Cannot read properties of undefined (reading 'unref')
    at ws.onopen (evalmachine.<anonymous>:4:87272)

then terminates the puter session.

I'm running node v22.18.0 on MacOS.

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