Skip to content

Commit 4a9bbcb

Browse files
devversionvivian-hu-zz
authored andcommitted
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`)
1 parent da63c6f commit 4a9bbcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/schematics/ng-generate/drag-drop/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,5 @@
9393
"description": "Specifies if the component is an entry component of declaring module."
9494
}
9595
},
96-
"required": []
96+
"required": ["name"]
9797
}

0 commit comments

Comments
 (0)