-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Readme sample code throws error: Runtime Error Uncaught (in promise): Error: No provider for AngularFireAuth! #956
Comments
I believe you need to import If you go through Step 1, which is setup and installation, you'll have imported it. But perhaps if you just jump to step 5 and don't realize you need it, you'd get that error. |
@markgoho - Adding AngularFireAuthModule to Imports throws error. Please try yourself. |
@sunilkconsultant Can you show your |
|
After import as below: imports: [ Throws error: Typescript Error Stack |
You need to add |
@markgoho thanks! this worked, closing it. I hope this is mentioned in the document just for others reference? |
Please document this before closing |
Version info
Angular:
4.0.2
Firebase:
3.9.0
AngularFire:
4.0.0-rc.0
Other (e.g. Ionic/Cordova, Node, browser, operating system):
Cordova CLI: 7.0.0
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.7
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v6.10.1
Xcode version: Xcode 8.2.1 Build version 8C1002
How to reproduce these conditions
use below code in ionic v2 starter app:
Steps to set up and reproduce
Follow the steps as mention in this repo readme document #5. User authentication
Debug output
** Errors in the JavaScript console **
Runtime Error
Uncaught (in promise): Error: No provider for AngularFireAuth!
Same error occurs when used with this Using AngularFire2 with Ionic 2 readme document
Please review looks like the document is missing some imports/exports.
The text was updated successfully, but these errors were encountered: