ng2-idle icon indicating copy to clipboard operation
ng2-idle copied to clipboard

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

Open marknorgate-meansoft opened this issue 6 years ago • 7 comments

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.

  • @ng-idle version: ^6.0.0-beta.1
  • Angular version: 5.2.0
  • Browser: Chrome Version 66.0.3359.181 (Official Build) (64-bit)

  • Language: TypeScript 2.5.3

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

marknorgate-meansoft avatar May 24 '18 12:05 marknorgate-meansoft

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

JaiseBabu avatar May 28 '18 09:05 JaiseBabu

Nope, not yet.

marknorgate-meansoft avatar May 29 '18 10:05 marknorgate-meansoft

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

JustACodeMonkey avatar May 29 '18 18:05 JustACodeMonkey

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

npm install --save @ng-idle/[email protected] @ng-idle/[email protected]

edlahoz avatar May 31 '18 17:05 edlahoz

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/[email protected] @ng-idle/[email protected]

atljoseph avatar Jun 20 '18 17:06 atljoseph

Please add framework dependency versions to README.

thoughtpalette avatar Sep 06 '18 18:09 thoughtpalette

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

redsan74 avatar Nov 01 '18 15:11 redsan74