moribvndvs / ng2-idle

Responding to idle users in Angular (not AngularJS) applications.
https://moribvndvs.github.io/ng2-idle
Apache License 2.0
315 stars 128 forks source link

Uncaught TypeError: Object(...) is not a function #109

Open santhoshrajuvysyaraju opened 5 years ago

santhoshrajuvysyaraju commented 5 years ago

I Got this error while integrating my application with ng2-idle.

Here is the Error I got

Uncaught TypeError: Object(...) is not a function at eval (eventtargetinterruptsource.js:39) at Array.map () at DocumentInterruptSource.EventTargetInterruptSource [as constructor] (eventtargetinterruptsource.js:39) at new DocumentInterruptSource (documentinterruptsource.js:21) at createDefaultInterruptSources (index.js:16) at eval (index.js:19) at Object../node_modules/@ng-idle/core/index.js (vendor.bundle.js:471) at __webpack_require__ (inline.bundle.js:55) at eval (app.component.ts:7) at Object../src/app/app.component.ts (main.bundle.js:50)

Please help me to solve the issue.

Thanks In Advance.

reach2deep commented 5 years ago

Try this

npm install --save @ng-idle/core@2.0.0-beta.15 @ng-idle/keepalive@2.0.0-beta.15

nilesh121196 commented 5 years ago

Great!!!. Thanks @HackedByChinese

redsan74 commented 5 years ago

I am on angular 6 still have this issue