-
Notifications
You must be signed in to change notification settings - Fork 234
angularfire.min.js causing error Unknown provider: $firebaseSimpleLoginProvider <- $firebaseSimpleLogin #6
Comments
i am encountering the same problem. For me it's a dependency problem between firebase, angularfire, and firebase-simple-login. i am currently trying to find the right combination using bower. i used yeoman to scaffold out the project, and bower to grab the packages. |
I believe this is due to "use strict" somewhere in the code or in previous js libs included before this file |
angular.js:11496 Error: [$injector:unpr] Unknown provider: $firebaseSimpleLoginProvider <- $firebaseSimpleLogin <- Auth |
Guys, looks like this is due to $firebaseSimpleLogin being deprecated in angularfire 0.9.0 in favor of $firebaseAuth, which supports some of the newer Firebase 1.1.0 authentication methods. I was running into the exact same issues, and changing to $firebaseAuth fixed everything for me. See the description here in the release notes. |
which methods did you use in place of (login, logout, etc)? |
@dhawking I used this as my guide: https://www.firebase.com/docs/web/guide/user-auth.html - hope that helps. |
In case it helps anyone: After pulling in the latest changes from the angularfire-seed project (up to commit 3d76b5e2ce1a345a2d751f52a1864e29bed72bae) I experienced the same error, even though everything seemed to be migrated to using $firebaseAuth |
I think minify this file causing problem with
firebase-simple-login.js
:https://github.com/firebase/firebase-angular-starter-pack/blob/master/Ionic-seed/www/js/firebase/angularfire.min.js
If I use this version, it is fine
https://github.com/firebase/firebase-angular-starter-pack/blob/master/angularFire-seed/test/lib/firebase/angularfire.js
The text was updated successfully, but these errors were encountered: