We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dbc103 commit dc2464eCopy full SHA for dc2464e
packages/core/src/render3/jit/util.ts
@@ -49,7 +49,10 @@ function reflectDependency(compiler: CompilerFacade, dep: any | any[]): R3Depend
49
}
50
for (let j = 0; j < dep.length; j++) {
51
const param = dep[j];
52
- if (param instanceof Optional || param.__proto__.ngMetadataName === 'Optional') {
+ if (param === undefined) {
53
+ // param may be undefined if type of dep is not set by ngtsc
54
+ continue;
55
+ } else if (param instanceof Optional || param.__proto__.ngMetadataName === 'Optional') {
56
meta.optional = true;
57
} else if (param instanceof SkipSelf || param.__proto__.ngMetadataName === 'SkipSelf') {
58
meta.skipSelf = true;
0 commit comments