Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marknorgate-meansoft opened this issue May 24, 2018 · 7 comments

Comments

@marknorgate-meansoft
Copy link

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?

@JaiseBabu
Copy link

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

@marknorgate-meansoft
Copy link
Author

Nope, not yet.

@JustACodeMonkey
Copy link
Contributor

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

@edlahoz
Copy link

edlahoz commented May 31, 2018

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
Copy link

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]

@thoughtpalette
Copy link

Please add framework dependency versions to README.

@redsan74
Copy link

redsan74 commented Nov 1, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants