Skip to content

The "path" argument must be of type string. Received undefined #581

@andresgutgon

Description

@andresgutgon

Describe the bug

What?

I'm aware that there is already this issue #180 in that issue the solution is to update NodeJS to v22. But this is my situation

Error

The "path" argument must be of type string. Received undefined
Almost all bash operations like cd, ls, cat are failing for me

## System Report
macOS:       26.1 (25B78)
iTerm2:      3.5.13
tmux:        tmux 3.4
Node.js:     v22.14.0
Copilot CLI: 0.0.358

I'm using pnpm for managing the install of copilot. And nvm for nodejs version

 which node
/Users/andres/.nvm/versions/node/v22.14.0/bin/node

Affected version

0.0.358

Steps to reproduce the behavior

 ✗ Check if Preview module exists
   $ cd /Some/path/in/my/machine && find 
   packages/some/path/lib -name "*preview*.ex" -type f
   The "path" argument must be of type string. Received undefined

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions