Skip to content

[Bug] progress.stop without progress.start fails #381

@ericclemmons

Description

@ericclemmons

Environment

  • OS: macOS
  • Node Version: 24.5.0
  • Package: @clack/prompts
  • Package Version: `1.0.0-alpha.1

Describe the bug

progress.stop without progress.start has runtime error:

TypeError: $ is not a function
│      at Object.Z [as stop] (file:///Users/eric/Projects/testdriverai/monorepo/node_modules/.pnpm/@[email protected]/node_modules/@clack/prompts/dist/index.mjs:65:9)

To Reproduce
Include a link to a minimal reproduction using node.new

https://stackblitz.com/edit/node-3qra3xfz?file=index.js

Expected behavior

Either throw because the progress bar hasn't started yet, or implicitly .start when .message is called.

A clear and concise description of what you expected to happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions