Closed paul-thebaud closed 5 months ago
:wave: Thanks for the report. This is a known limitation of WebContainer, as it does not support AsyncLocalStorage
.
I'm going to close this in favor or https://github.com/stackblitz/webcontainer-core/issues/1169, where it was already discussed in some detail.
Describe the bug
When using inside Stackblitz, Inquirer
input
prompt will crash with the following error after user validate its choice for input:HookError: [Inquirer] Hook functions can only be called from within a prompt
Error does not show inside a "classical" environment. Error does not seems to show for all available prompts (tested
select
: no error).Link to the blitz that caused the error
https://stackblitz.com/edit/stackblitz-starters-rlkfig?file=index.js
Steps to reproduce
node index.js
Expected behavior
Script should just log the filled name.
Parity with Local
Screenshots
No response
Platform
Additional context
An issue is already opened on Inquirer : https://github.com/SBoudrias/Inquirer.js/issues/1426 The package maintainer find that weird and think it is a Stackblitz Web container issue.