From 0027ef299224c2c312bd2cb0d4d379a417e07698 Mon Sep 17 00:00:00 2001 From: Armando Navarro Date: Wed, 15 Jul 2026 13:57:08 -0700 Subject: [PATCH] fix(schematics): warn when ng add setup runs with no features selected Pressing Enter without toggling any checkbox at the features prompt silently exited with the CLI's stock "Nothing to be done." message, giving no indication that Space selects a feature. Print a warning explaining the checkbox controls and inviting a retry. --- src/schematics/setup/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/schematics/setup/index.ts b/src/schematics/setup/index.ts index 3d40ed132..976548f87 100644 --- a/src/schematics/setup/index.ts +++ b/src/schematics/setup/index.ts @@ -62,7 +62,14 @@ export const ngAddSetupProject = ( const features = await featuresPrompt(); - if (features.length > 0) { + if (features.length === 0) { + context.logger.warn( + 'No features were selected, so there is nothing to set up. ' + + 'At the "What features would you like to setup?" prompt, use the arrow keys to move, ' + + 'press Space to select each feature you want, then Enter to confirm. ' + + 'Re-run ng add @angular/fire to try again.' + ); + } else { const firebaseTools = await getFirebaseTools();