I\'m trying to build my project which works fine when I\'m just running it locally with ng serve
.
but on ng b -prod
I get :
The problem comes from your lambda function as stated in the error.
You could change your queries one by one to be optional instead of doing it with the lambda function:
query(':leave', [ ... ], { optional: true }),
AOT compilation is really important as it dramatically reduces the size of your app and improves greatly the performances.