You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
default, choices(if defined as functions), validate, filter and when functions can be called asynchronously. Either return a promise or use this.async() to get a callback you'll call with the final value.
However, when I try to do this, I get an error:
TypeError: choices.forEach is not a function
at listRender (.......\node_modules\inquirer\lib\prompts\list.js:157:11)
According to the readme
However, when I try to do this, I get an error:
Looks like the line of code being called, and indeed, the whole file, assumes that choices will be an array.
https://github.com/SBoudrias/Inquirer.js/blob/master/packages/inquirer/lib/prompts/list.js#L157
The text was updated successfully, but these errors were encountered: