bergben/ng2-page-transition

zone.js:642 Unhandled Promise rejection: Cannot read property 'play' of undefined ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot read property 'play' of undefined

preservance717 opened this issue · 3 comments

zone.js:642 Unhandled Promise rejection: Cannot read property 'play' of undefined ; Zone: ; Task: Promise.then ; Value: TypeError: Cannot read property 'play' of undefined.
problem

That‘s why?

Hey there @preservance717 ,

could it be that you are using Angular 4.x? This package only works for Angular 2.x.
Another idea is that you may be using a custom animation, which is invalid and doesn't work...

yes,i am using Angular4.x.
yes, i am using a custom animation-pagination.
but i don't know the reason that it doesn't work.

If you are using Angular 4.x it's all clear. This package does not support Angular 4.x as Angular 4.x allows route transitions way cleaner and smoother than this package does.
Please refer to
the Readme: https://github.com/bergben/ng2-page-transition#works-for-angular-2x-only-angular-42-supports-route-transitions-built-in
or for more detailed information: #8

I hope this helps :)