Skip to content

[Bug] SyntaxError: Export named 'cancel' not found in module #508

Open

Description

@nsdeschenes

Environment

  • OS: Ubuntu
  • Bun Version: v1.3.11
  • Package: @clack/prompts
  • Package Version: v1.2.0

Describe the bug
My tests do not run successfully as I run into this error: SyntaxError: Export named 'cancel' not found in module.

To Reproduce
I've tried mocking out the module in multiple ways with Bun, you can view them at the following links:

Expected behavior
Tests run successfully

Activity

  1. 43081j commented on Apr 3, 2026

    @43081j
    Collaborator

    hmm i can't reproduce this with bun or node 🤔

    import {cancel} from '@clack/prompts';
    console.log(cancel);

    this works fine in bun and node for me.

    any more info would be nice

  2. nsdeschenes commented on Apr 3, 2026

    @nsdeschenes
    Author

    Sorry, I'm running into this issue when running in GitHub Actions, locally everything seems fine 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions