Cannot find name 'PhoneOrOauthTokenResponse', 'UserInternal'
See original GitHub issueVersion info
Angular: 13.2.0
Firebase:
AngularFire: 7.3.0
Other (e.g. Ionic/Cordova, Node, browser, operating system):
How to reproduce these conditions
I followed the doc and initialized @angular/fire by ng add @angular/fire. and after that compiler is giving error.
Debug output
** Errors in the JavaScript console **
Error: node_modules/@firebase/auth/dist/auth-public.d.ts:3137:22 - error TS2304: Cannot find name ‘PhoneOrOauthTokenResponse’.
3137 _tokenResponse?: PhoneOrOauthTokenResponse; ~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/@firebase/auth/dist/auth-public.d.ts:3429:11 - error TS2304: Cannot find name ‘UserInternal’.
3429 user: UserInternal; ~~~~~~~~~~~~
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
✖ Failed to compile.
** Output from firebase.database().enableLogging(true);
**
** Screenshots **
Issue Analytics
- State:
- Created a year ago
- Reactions:13
- Comments:19
@robjvan - the issue is in the ‘firebase’ library, not ‘@angular/fire’ - I made the same mistake at first. Try:
npm install firebase@9.7.0 --save --save-exact
. That worked for me.This works for me!!!