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
.ask({type: 'confirm',name: 'bacon',message: 'Do you like bacon?'}).ask({type: 'input',name: 'favorite',message: 'Bacon lover, what is your favorite type of bacon?',when: function(answers){console.log(answers)// BUG: get {}, expected { bacon: true | false }returnanswers.bacon;}})
Inquirer "when" got empty "answers" because recli run every question as separate inquirer sequence
You can push questions to separate array
config.questions
and run all questions in one inquirer sequence before tasksFull example
The text was updated successfully, but these errors were encountered: