Closed SeverinAlexB closed 1 year ago
It happens to me too, but after 10 differents prompts (confirms, select, inputs, etc)
I found a temporal solution, I added this code in my index.ts
:
import { EventEmitter } from "node:stream"; EventEmitter.setMaxListeners(0);
I hope that it helps you, while the bug is fixed
I looked into this and think I found the culprit (at least the warning no longer shows up after generating 10+ prompts).
I still have this issue. Is the best work around setting max emitters to 0?
Environment
@clack/prompts
Describe the bug
To Reproduce After using the
await select
a lot, the warning message above shows up.Expected behavior Should not show up.
Additional Information
Let me know if you got questions. It's probably just even emitter listener cleanup.