Ng-Idle Throws this error

@batianusrey I actually figured out the error.
It seems that the latest versions of ng-idle and keepalive wont work with my version of ionic-cli. I had to download these using the commands:

npm install --save @ng-idle/core@2.0.0-beta.10
npm install --save @ng-idle/keepalive@2.0.0-beta.10
npm install --save angular2-moment

Then things started working fine.