error TS2694: Namespace ...firebase/index"' has no exported member 'User'
See original GitHub issue- [x] bug report -> please search issues before submitting
- [ ] feature request
OS and Version?
> Windows 10
Versions
Angular CLI: 11.0.2
Node: 14.13.1
OS: win32 x64
Angular: 11.0.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1100.2
@angular-devkit/build-angular 0.1100.2
@angular-devkit/core 11.0.2
@angular-devkit/schematics 11.0.2
@angular/cdk 11.0.0
@angular/fire 6.1.1
@angular/flex-layout 11.0.0-beta.33
@angular/material 11.0.0
@schematics/angular 11.0.2
@schematics/update 0.1100.2
rxjs 6.6.3
typescript 4.0.5
Repro steps
Just start the project (ng s -o)
The log given by the failure
Project compiling and runing but in terminal error:
Error: src/app/Services/auth.service.ts:10:30 - error TS2694: Namespace '"C:/PROJECTS/TIMRL/timrl-md/node_modules/firebase/index"' has no exported member 'User'.
10 user$: Observable<firebase.User | null>;
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Angular 6 - '"/node_modules/firebase/index"' has no exported ...
I solved the problem by changing some dependencies versions: rxjs: "5.5.10" ...
Read more >Node_modules/firebase/index"' has no exported member ...
ts(9,30): error TS2694: Namespace '"/home/unepicfail/projects/roster/node_modules/firebase/app/index"' has no exported member 'database'.
Read more >Namespace has no exported member 'User' when ... - Reddit
Namespace has no exported member 'User' when using firebase with TS ... the AuthContext and AuthProvider files, I keep getting this error:
Read more >Namespace 'firebase' has no exported member 'firestore'
Just started using AngularFire2 v5 seeing the following error about a dozen times when I run the app: Namespace 'firebase' has no exported...
Read more >[Solved]-Angular 13: Namespace '"/node_modules/firebase ...
Coding example for the question Angular 13: Namespace '"/node_modules/firebase/compat/index"' has no exported member 'User'. ts(2694)-angular.js.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DavidTheProgrammer thank again mate 🍻
Update to lastest version (5.0.0)