I want to use ng-idle/ng-keepalive in my angular 8 project, I tried installing many versions of them, but in console it is showing this error only

Error: Uncaught (in promise): TypeError: Object(...) is not a function TypeError: Object(...) is not a function at eval (eventtargetinterruptsource.js:39:70)

Can you tell me which version should i install that would be compatible with Angular version 8

I installed the version for ng-idle/keepalive by using this version guide

1

There are 1 best solutions below

3
Julian W. On BEST ANSWER

You should use v8.0.0-beta.4.

You can check the compatible version of most of npm libraries by following these steps.

  1. Go to GitHub source repository. In this case, it's https://github.com/moribvndvs/ng2-idle
  2. Open package.json file and check which version of angular is this library's latest version compatible with. "dependencies" -> "@angular/core"
  3. If it is not the version you want, you try to switch to another tag from Switch branches/tags dropdown.enter image description here