[Bug] SelectPrompt
throws a TypeError
when given an empty options array
#144
Labels
bug
Something isn't working
Environment
@clack/core
(depended on by@sentry/wizard@3.9.2
)Describe the bug
SelectPrompt
throws aTypeError
when given an empty options array.Encountered when using
@sentry/wizard@3.9.2
, see the related issue: getsentry/sentry-wizard#400Example:
To Reproduce
https://stackblitz.com/edit/node-kyd3oq?file=index.ts
Pass an empty array for
options
when creating a newSelectPrompt
Expected behavior
SelectPrompt
(andselect
from@clack/prompts
) should require at least 1 element in the array (it doesn't make sense to have no options to select from)The text was updated successfully, but these errors were encountered: