Closed devpenzil closed 1 year ago
It's not a bug. You have to check if the prompt was cancelled by the user first (where a cancel symbol
is returned). See https://github.com/natemoo-re/clack/blob/main/packages/prompts/README.md#cancellation:
import { isCancel, cancel, text } from '@clack/prompts';
const result = await text(...);
if (isCancel(result)) {
cancel('Operation cancelled.');
process.exit(0);
}
appdetails.packagename = result
Thanks @ulken for the quick response. Its working
Describe the bug
Here the appdetails.packagename type is "string". and shows this error
How to solve this