When I currently run ng build
command, I get a whole bunch of runtime issues that are absent when I compile in JIT mode (Angular 6).
Is there a way to get a list of all the AOT issues at compile time, without having to find them out manually?
I thought there was at least a package of tslint
rules that would enforce the developers to write AOT-compliant code, but I can't find one. Am I missing something?
Any help appreciated.
UPDATE: One of the runtime issues I'm talking about is that mat-icon
s from Angular Material don't work. They just render as text, like "chevron_left". The bundle, obviously, does not contain the MatIconModule
. However, everything works as expected with JIT.
Besides, when I read the AOT documentation, I see that AOT compiler does not support references to local (not exported) symbols. However, I do reference local symbols in my decorators, but I don't get any compilation errors notifying me about this.