You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
how to disable static analysis/validation for AOT compliance #5153
ERROR in Error encountered resolving symbol values statically. Reference to a local (non-exported) symbol 'VarName'...
Mention any other details that might be useful.
I have an application that has a dynamic template 'determined' at runtime and by various factors. The possibilities are infinite to hard-code them. Before i upgraded the cli - my prod build would just work fine. It appears that the current version performs some static code validation/analysis for AOT compliance and hence is breaking it.
I am not planning to run this particular app in AOT since the template cannot be determined at runtime.
I would need a way to disable static analysis during build so I would be able to achieve the desired result.
With ng build --prod --no-aot it still builds with aot and complains about lambda function.
Any thing I might be missing? thanks :)
Reacted by Abou Koné, Tyson Phalp, Colin J Lacy, Dmi, John Hart, Vittorio Morganti, TakanashiOuken, Irtaza Abbas, Dariusz Filipiak, Robbert Halff and 2 more
angular-automatic-lock-bot commented on Sep 6, 2019
Activity
mattdistefano commentedon Mar 1, 2017
#4904
delasteve commentedon Mar 2, 2017
@nmorado, as @mattdistefano linked, if you are looking to disable AoT, use the following command:
This should get you a production build with JIT compilation.
loixlab commentedon Mar 14, 2017
Hi,
Just commented in #4904 (#4904 (comment))
With
ng build --prod --no-aotit still builds with aot and complains about lambda function.Any thing I might be missing? thanks :)
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.