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

Uncaught Invalid provider - only instances of Provider and Type are allowed #10

Closed allanmagale closed 7 years ago

allanmagale commented 8 years ago

After applying gulp-webpack to my ts scripts, running my application gets this error in Chrome:

Uncaught Invalid provider - only instances of Provider and Type are allowed, got: [object Object]

When I remove the IDLE_PROVIDERS from the bootstrap method it works fine.

Environment: Angular2: RC1 ng2-idle: 1.0.0-alpha.12

elcriz commented 8 years ago

+1

I get the same error, running Webpack. Hopefully this can be fixed, since there isn't really an alternative to ng2-idle for Angular 2.

moribvndvs commented 8 years ago

I honestly don't know what the deal is (this is the same as #3). It works in other setups, but I can't seem to get this working in Webpack. I don't have much experience with WP, so I could use some help.

smorks commented 7 years ago

We are using webpack in our project as well, and I believe that the changes that were merged for Angular 2 RC5 support should fix this issue.

stephengeorgewest commented 7 years ago

This specific bit seems to be working in RC6, but I couldn't get past the extra issue mentioned in #3