I created multiple animations using the nativescript-angular/animations. But when I compile the app using AOT, the animations are not showing anymore. Do you have a demo where animations work with AOT ? tns run ios --device 1 --bundle --env.uglify  tns run ios --device 1 --bundle --env.aot --env.uglify 
Activity
jolafrite commentedon Mar 21, 2018
I just found a difference between without AOT and with AOT
Without AOT the AnimationPlayer instance is AnimationRenderer
With AOT the AnimationPlayer instance is BaseAnimationRenderer
jolafrite commentedon Mar 21, 2018
one more update
with the following line :
docis undefined in AOTsis0k0 commentedon Mar 21, 2018
Hey @jolafrite, can you test with the
nextversion of {N} angular?This should be fixed with #1164, but it hasn't been released yet.
jolafrite commentedon Mar 21, 2018
@sis0k0 just when I found what I was supposed to do to fix the issue :-)
yes move the document polyfill to platform-common.ts fixes the issue
Great!