question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
AnthonyNahascommented, Dec 9, 2020

@DavidTheProgrammer thank again mate 🍻

2reactions
longcharmroeuncommented, Nov 23, 2020

Update to lastest version (5.0.0)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found