Fix for the ng add console lock up #3151
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix the the ng add console freeze. #3145 #3121, firebase-tools#4118
My first thought is that inquirer-autocomplete is broken... but while experimenting, I found that places in the code that had an autocomplete and were waiting on a pending firebase-tools call were locking up but those that prompted with an already resolved firebase-tools call were not... my suspicion is either something is up with the pinned version of inquirer, inquirer is conflicting with ora (
preparing list of ***...
), or how firebase-tools is loading inquirer when it's called (something, something, race condition).Either way, this is a high priority issue and this seems to fix it.