fix(compiler): Fix look up of entryComponents in AOT Summaries (#24892)
Previously, when you attempted to bootstrap a component that had a router-outlet using ngsummaries, it would complain that the component was not provided by any module even if it was. This commit fixes a mistake (AFAICT) which caused the lookup of the component in the AOT summaries to fail. I believe this change is safe. I've run the affected tests within Google and there were no breakages caused by this change. PR Close #24892
This commit is contained in:
@ -196,7 +196,7 @@ export class JitCompiler {
|
||||
}
|
||||
});
|
||||
localModuleMeta.entryComponents.forEach((entryComponentType) => {
|
||||
if (!this.hasAotSummary(entryComponentType.componentType.reference)) {
|
||||
if (!this.hasAotSummary(entryComponentType.componentType)) {
|
||||
const moduleMeta = moduleByJitDirective.get(entryComponentType.componentType) !;
|
||||
templates.add(
|
||||
this._createCompiledHostTemplate(entryComponentType.componentType, moduleMeta));
|
||||
|
Reference in New Issue
Block a user