From 4a9bbcb60d4b4ae6a904eb8a53d246a128f6ce8d Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Sat, 6 Oct 2018 01:34:34 +0200 Subject: [PATCH] fix(schematics): name is required when generating the drag-drop schematic (#13452) * Similar to the other component generation schematics in `@angular/material`, the drag-drop schematic in `@angular/cdk` requires a name to be specified. If we don't mark this as required, a runtime exception will be thrown (`Cannot read property 'replace' of undefined`) --- src/cdk/schematics/ng-generate/drag-drop/schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdk/schematics/ng-generate/drag-drop/schema.json b/src/cdk/schematics/ng-generate/drag-drop/schema.json index 528674304b2..844a4e5a205 100644 --- a/src/cdk/schematics/ng-generate/drag-drop/schema.json +++ b/src/cdk/schematics/ng-generate/drag-drop/schema.json @@ -93,5 +93,5 @@ "description": "Specifies if the component is an entry component of declaring module." } }, - "required": [] + "required": ["name"] }