fix(ivy): fix 'Module not found` error message (#26403)
The message was dumping a serialized object instead of a human readable name into the exception being thrown. PR Close #26403
This commit is contained in:
parent
1918f8d5b5
commit
adce5064b0
|
@ -198,7 +198,7 @@ export class SelectorScopeRegistry {
|
||||||
SelectorScopes {
|
SelectorScopes {
|
||||||
const result = this.lookupScopes(node, ngModuleImportedFrom);
|
const result = this.lookupScopes(node, ngModuleImportedFrom);
|
||||||
if (result === null) {
|
if (result === null) {
|
||||||
throw new Error(`Module not found: ${reflectIdentifierOfDeclaration(node)}`);
|
throw new Error(`Module not found: ${reflectNameOfDeclaration(node)}`);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue