Open zbeedatm opened 6 years ago
Solved by adding HttpClientModule to my app.module.ts
Pls update the example page with this instruction for angular5
Added HttpClientModule, even HttpModule in AppModule but still facing this error.
Adding HttpClientModule/HttpModule did not help me. If there any solution?
@sarikonduri instruction on https://hackedbychinese.github.io/ng2-idle/ misses only adding HttpClientModule to root module's imports. Here's it my StackBlitz example — https://stackblitz.com/edit/ng-idle-issue-98 — what's in instruction but with HttpClientModule.
If you need more assistance, please, try replicating your issue in StackBlitz, it would make helping easier.
@HackedByChinese I think this issue is resolved and can be closed, but instruction needs an update. Can you maybe point me at its source files so I can prepare pull request?
I'm submitting a ... (check one with "x")
Current behavior
Getting exception:
Expected behavior
App should load as it was before installing this package
Minimal reproduction of the problem with instructions
Followed this example: https://hackedbychinese.github.io/ng2-idle/ and tried to load app, but it failed.
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Angular5 / Windows
@ng-idle version: 2.x
"ng-idle/core": "^2.0.0-beta.15", "ng-idle/keepalive": "^2.0.0-beta.15", "angular2-moment": "^1.9.0",
Angular version: 2.x
5.2.4
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
All
Language: [all | TypeScript X.X | ES6/7 | ES5] "typescript": "~2.4.2"
Node:
node --version
=