diff --git a/src/aot/aot-compiler.ts b/src/aot/aot-compiler.ts index 6c13f6f7..58529bf1 100644 --- a/src/aot/aot-compiler.ts +++ b/src/aot/aot-compiler.ts @@ -197,8 +197,7 @@ export async function runNg5Aot(context: BuildContext, tsConfig: TsConfig, aggre .concat(program.getTsOptionDiagnostics()) .concat(program.getTsSemanticDiagnostics()); - const angularDiagnostics = program.getNgSemanticDiagnostics() - .concat(program.getNgStructuralDiagnostics()) + const angularDiagnostics = program.getNgStructuralDiagnostics() .concat(program.getNgOptionDiagnostics());