Skip to content

🐛 BUG: Show a useful message when listing Pages projects on an account which doesn't have any #4444

Closed
@creikey

Description

@creikey

Which Cloudflare product(s) does this pertain to?

Pages

What version(s) of the tool(s) are you using?

3.15.0

What version of Node are you using?

v18.17.0

What operating system are you using?

Windows 11

Describe the Bug

Got this error:

C:\Users\camer\Documents\rpgpt>wrangler pages deployment list
Select a project:
C:\Users\camer\AppData\Roaming\nvm\v18.17.0\node_modules\wrangler\wrangler-dist\cli.js:29374
            throw a;
            ^

TypeError: Cannot read properties of undefined (reading 'value')
    at onSelect (C:\Users\camer\AppData\Roaming\nvm\v18.17.0\node_modules\wrangler\wrangler-dist\cli.js:140924:32)
    at C:\Users\camer\AppData\Roaming\nvm\v18.17.0\node_modules\wrangler\wrangler-dist\cli.js:109615:13
    at ReadStream.handleData (C:\Users\camer\AppData\Roaming\nvm\v18.17.0\node_modules\wrangler\wrangler-dist\cli.js:53843:13)
    at ReadStream.emit (node:events:526:35)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:293:11)
    at Readable.push (node:internal/streams/readable:234:10)
    at TTY.onStreamRead (node:internal/stream_base_commons:190:23)

Node.js v18.17.0

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't workingpagesRelating to PagespolishSmall improvements to the experience

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions