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
ERROR TypeError: Cannot read property 'GoogleAuthProvider' of undefined #968
Comments
Tried replacing But no luck. Asked for help in Stackoverflow too https://stackoverflow.com/a/50025372/2231209 |
I upgraded angularfire2 in my app to "5.0.0-rc.6.0" today and have exactly the same problem as @susovan87 version info: |
For the moment if you change the version of firebase to 4.12.1 work it. |
I had the same problem! import * as firebase from 'firebase'; in favor of import { firebase } from '@firebase/app'; That works for me. "dependencies": {
"@angular/animations": "5.2.10",
"@angular/common": "5.2.10",
"@angular/compiler": "5.2.10",
"@angular/core": "5.2.10",
"@angular/forms": "5.2.10",
"@angular/http": "5.2.10",
"@angular/platform-browser": "5.2.10",
"@angular/platform-browser-dynamic": "5.2.10",
"@angular/router": "5.2.10",
"@firebase/app": "0.1.6",
"angularfire2": "5.0.0-rc.6.0",
"core-js": "2.4.1",
"firebase": "4.13.1",
"font-awesome": "4.7.0",
"rxjs": "^5.5.10",
"zone.js": "^0.8.26"
} Hope it helps! |
Thanks @SMontiel, |
Thanks @SMontiel |
Thank you. @SMontiel Works for me to. |
Issue is till open so I want to contribute my solution:
|
Cant seem to get this to work either. Tried downgrading but that messed up a few of my call functions. Using latest version of everything... |
Hola, tenia el mismo error y la manera en que lo solucione, fue simplemente agregando en el index la siguiente linea: <script src="https://www.gstatic.com/firebasejs/5.10.1/firebase-auth.js"></script> |
Buenas! Como dice Jonathan tambien lo solucione con agregar al html: <script src="https://www.gstatic.com/firebasejs/5.10.1/firebase-auth.js"></script> |
Had to go with this for Angular/Fire 6.0.0
|
@danfri86 Thanks man, that approach worked for me ! "@angular/fire": "^6.0.0", |
I think @gustavo-alarcon's solution should be included in the installation instructions and readme. Developers shouldn't have to search and come here in the issues to find this out when it can be done. I am willing to update the readme if need be. |
For the record and anyone else ending up here, this worked for me:
Then I could use this, as a crude example
I am using:
|
works on
|
Version info
Angular: 5.2.10
Firebase: 4.13.0
AngularFire: 5.0.0-rc.6.0
Other (e.g. Node, browser, operating system) (if applicable):
@firebase/app: 0.1.10
Node: v8.11.1
Browser: Google Chrome Version 65.0.3325.181 (Official Build) (64-bit)
Test case
Firebase Authentication is not working. I have tried the same code as mentioned in 5. Getting started with Firebase Authentication. Got error message as below
Error in below line
Inspecting
firebase
shows noauth
insidePlease note that I have already enabled
Google Authentication
fromfirebase console
.The text was updated successfully, but these errors were encountered: