ng2-idle
ng2-idle copied to clipboard
Error in eventtargetinterruptsource.js:39 trying to run demo application
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?
Facing the same issue, are you or any one able to resolve it?
Nope, not yet.
The @ng-idle version you're using ONLY works with Angular 6. You need to use the version prior to this one.
You need to install these versions since you are not on ng-6:
npm install --save @ng-idle/[email protected] @ng-idle/[email protected]
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]
Please add framework dependency versions to README.
I have angular version Angular: 5.2.11 and I still face this issue