You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/compiler/src/metadata_resolver.ts
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -529,6 +529,7 @@ export class CompileMetadataResolver {
529
529
syntaxError(
530
530
`Can't export ${this._getTypeDescriptor(exportedId.reference)}${stringifyType(exportedId.reference)} from ${stringifyType(moduleType)} as it was neither declared nor imported!`),
531
531
moduleType);
532
+
return;
532
533
}
533
534
});
534
535
@@ -627,6 +628,7 @@ export class CompileMetadataResolver {
627
628
`Please consider moving ${stringifyType(type)} to a higher module that imports ${stringifyType(oldModule)} and ${stringifyType(moduleType)}. `+
628
629
`You can also create a new NgModule that exports and includes ${stringifyType(type)} then import that NgModule in ${stringifyType(oldModule)} and ${stringifyType(moduleType)}.`),
629
630
moduleType);
631
+
return;
630
632
}
631
633
this._ngModuleOfTypes.set(type,moduleType);
632
634
}
@@ -860,6 +862,7 @@ export class CompileMetadataResolver {
860
862
}elseif(provider===void0){
861
863
this._reportError(syntaxError(
862
864
`Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files.`));
865
+
return;
863
866
}else{
864
867
constprovidersInfo=
865
868
(<string[]>providers.reduce(
@@ -879,6 +882,7 @@ export class CompileMetadataResolver {
879
882
syntaxError(
880
883
`Invalid ${debugInfo ? debugInfo : 'provider'} - only instances of Provider and Type are allowed, got: [${providersInfo}]`),
0 commit comments