diff --git a/packages/compiler-cli/src/ngtsc/annotations/src/selector_scope.ts b/packages/compiler-cli/src/ngtsc/annotations/src/selector_scope.ts index 3a669955cc..4f41fc09ea 100644 --- a/packages/compiler-cli/src/ngtsc/annotations/src/selector_scope.ts +++ b/packages/compiler-cli/src/ngtsc/annotations/src/selector_scope.ts @@ -198,7 +198,7 @@ export class SelectorScopeRegistry { SelectorScopes { const result = this.lookupScopes(node, ngModuleImportedFrom); if (result === null) { - throw new Error(`Module not found: ${reflectIdentifierOfDeclaration(node)}`); + throw new Error(`Module not found: ${reflectNameOfDeclaration(node)}`); } return result; }