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

Error in eventtargetinterruptsource.js:39 trying to run demo application #100

Open marknorgate-meansoft opened 6 years ago

marknorgate-meansoft commented 6 years ago

I'm submitting a ... (check one with "x")

[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/HackedByChinese/ng2-idle/blob/master/CONTRIBUTING.md#getting-help

Current behavior This error is displayed in the console of the browser:

eventtargetinterruptsource.js:39 Uncaught TypeError: Object(...) is not a function
    at eval (eventtargetinterruptsource.js:39)
    at Array.map (<anonymous>)
    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:455)
    at __webpack_require__ (inline.bundle.js:55)
    at eval (keepalive.js:1)
    at Object../node_modules/@ng-idle/keepalive/src/keepalive.js (vendor.bundle.js:591)

Expected behavior The timer should start and function as demoed on this page

Minimal reproduction of the problem with instructions

I built the application as described on this page

Please tell us about your environment:

I am using macOS 10.13.3 and Angular 5.2.0.

Has anyone come across this issue? Any idea what I can do about it?

JaiseBabu commented 6 years ago

Facing the same issue, are you or any one able to resolve it?

marknorgate-meansoft commented 6 years ago

Nope, not yet.

JustACodeMonkey commented 6 years ago

The @ng-idle version you're using ONLY works with Angular 6. You need to use the version prior to this one.

edlahoz commented 6 years ago

You need to install these versions since you are not on ng-6:

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

atljoseph commented 6 years ago

I had the same issue in Angular 5.X. This VERY IMPORTANT NUGGET OF INFORMATION should be included (no ... HIGHLIGHTED) in the Quick Start section of the documentation (README.md).

You need to install these versions since you are not on ng-6:
npm install --save @ng-idle/core@2.0.0-beta.15 @ng-idle/keepalive@2.0.0-beta.15
thoughtpalette commented 5 years ago

Please add framework dependency versions to README.

redsan74 commented 5 years ago

I have angular version Angular: 5.2.11 and I still face this issue