From 8edea03df7ff5463630ff18337fb80c4acd67c30 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Thu, 4 May 2023 10:14:24 +0100 Subject: [PATCH] fix(angular): update component module error message to suggest standalone --- packages/angular/src/generators/component/lib/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular/src/generators/component/lib/module.ts b/packages/angular/src/generators/component/lib/module.ts index 7db0220e1d596..f08b85817b7af 100644 --- a/packages/angular/src/generators/component/lib/module.ts +++ b/packages/angular/src/generators/component/lib/module.ts @@ -81,6 +81,6 @@ function findModule( } throw new Error( - "Could not find a candidate module to add the component to. Please specify which module the component should be added to by using the '--module' option." + "Could not find a candidate module to add the component to. Please specify which module the component should be added to by using the '--module' option, or pass '--standalone' to generate a standalone component." ); }