-
Notifications
You must be signed in to change notification settings - Fork 130
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
NoProviderError after RC6 upgrade #17
Comments
I have the same issue |
Here is a workaround extend the Idle Class and provide it instead of Idle eg
|
Thanks @elvirdolic ,this worked great for me as well! |
@patriknil90 node_modules/ng2-idle/core.js does not export SimpleExpiry It works fine using ionic serve, but when I try and make a prod bundle (ionic build ios) it fails as above - I assume its the AOT compiler that is complaining for some reason. Can you provide a working repo with the workaround in it? My code snippet: @Injectable() @component({ |
Had ng2-idle implemented on a RC5/Webpack installation after following the GETTING STARTED part of the readme. Everything working fine. Upgraded to RC6 yesterday and got an error + app crash.
Image with the chrome console error
I have not tried to install the ng2-keepalive library in my app.
What I did try was to declare the KeepaliveSvc class as a provider in app.module.ts and in the component where the Idle functions run in different ways with no success.
Setup:
app.module.ts:
auth-timer.component.ts:
The text was updated successfully, but these errors were encountered: