moribvndvs / ng2-idle

Responding to idle users in Angular (not AngularJS) applications.
https://moribvndvs.github.io/ng2-idle
Apache License 2.0
315 stars 128 forks source link

Unexpected value '[object Object]' imported by the module 'AppModule', - ionic 2 #25

Closed herbzi closed 7 years ago

herbzi commented 7 years ago

Hi, I'm on alpha 18 I just created a new ionic 2 project with

ionic start myApp --v2.

Then all I did was install via npm and include the module in my module's imports as in the ng2-idle-example repo.

I get this error and I cannot figure out why.

herbzi commented 7 years ago

Ok, I guess it's just that ng2-idle forces angular version 2.0.x when versions up to 2.2.0 have been released . I created a fork with "^2.0.0" for the angular dependencies and installed that instead so it uses the same angular code that i'm using. Then everything works fine.

gminky019 commented 7 years ago

I'm having the same problem. I don't really want to downgrade to a lower version for the angular dependencies. Any other ideas?

lemon707 commented 7 years ago

@herbzi I tried the same thing with forking in order to up to 2.1.0 but getting the Can't resolve 'ng2-idle' in '...../src/app' error. Any sugestions?

moribvndvs commented 7 years ago

Ng-Idle has been significantly refactored. It includes a relaxation on the Angular dependencies. Please refer to the README and CHANGELOG on how to update your application.