mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
fix(compiler-cli): add missing period to error message (#47744)
With this change we add a missing period to the error message. PR Close #47744
This commit is contained in:
parent
9483343ebf
commit
38078e7adb
1 changed files with 3 additions and 3 deletions
|
|
@ -69,7 +69,7 @@ export function validateAndFlattenComponentImports(imports: ResolvedValue, expr:
|
|||
if (!Array.isArray(imports)) {
|
||||
const error = createValueHasWrongTypeError(
|
||||
expr, imports,
|
||||
`'imports' must be an array of components, directives, pipes, or NgModules`)
|
||||
`'imports' must be an array of components, directives, pipes, or NgModules.`)
|
||||
.toDiagnostic();
|
||||
return {
|
||||
imports: [],
|
||||
|
|
@ -91,7 +91,7 @@ export function validateAndFlattenComponentImports(imports: ResolvedValue, expr:
|
|||
diagnostics.push(
|
||||
createValueHasWrongTypeError(
|
||||
ref.getOriginForDiagnostics(expr), ref,
|
||||
`'imports' must be an array of components, directives, pipes, or NgModules`)
|
||||
`'imports' must be an array of components, directives, pipes, or NgModules.`)
|
||||
.toDiagnostic());
|
||||
}
|
||||
} else if (isLikelyModuleWithProviders(ref)) {
|
||||
|
|
@ -111,7 +111,7 @@ export function validateAndFlattenComponentImports(imports: ResolvedValue, expr:
|
|||
diagnostics.push(
|
||||
createValueHasWrongTypeError(
|
||||
expr, imports,
|
||||
`'imports' must be an array of components, directives, pipes, or NgModules`)
|
||||
`'imports' must be an array of components, directives, pipes, or NgModules.`)
|
||||
.toDiagnostic());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue