Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Namespace 'firebase' has no exported member 'Promise'. #90

Open
PgPedroGabriel opened this issue Mar 9, 2018 · 9 comments
Open

Namespace 'firebase' has no exported member 'Promise'. #90

PgPedroGabriel opened this issue Mar 9, 2018 · 9 comments

Comments

@PgPedroGabriel
Copy link

i got this error

ERROR in node_modules/angularfire2-offline/database/angularfire2-interfaces.d.ts(4,32): error TS2694: Namespace 'firebase' has no exported member 'Promise'.
node_modules/angularfire2-offline/database/angularfire2-interfaces.d.ts(5,35): error TS2694: Namespace 'firebase' has no exported member 'Promise'.
node_modules/angularfire2-offline/database/angularfire2-interfaces.d.ts(6,35): error TS2694: Namespace 'firebase' has no exported member 'Promise'.
node_modules/angularfire2-offline/database/angularfire2-interfaces.d.ts(7,44): error TS2694: Namespace 'firebase' has no exported member 'Promise'.
node_modules/angularfire2-offline/database/object/afo-object-observable.d.ts(53,24): error TS2694: Namespace 'firebase' has no exported member 'Promise'.
node_modules/angularfire2-offline/database/object/afo-object-observable.d.ts(63,31): error TS2694: Namespace 'firebase' has no exported member 'Promise'.

@MayGo
Copy link

MayGo commented Mar 12, 2018

I also have this problem. Please merge pull-requests where these are fixed.

@sdanieljose
Copy link

HI! I'm with same problem, you find any solution @MayGo or @PgPedroGabriel?

I had this problem with the version of AngularFire2 ^5.0.0-rc.4 but with the version of example 4.0.0-rc.0 works!

@MayGo
Copy link

MayGo commented Jun 12, 2018

I made a choice to use firestore instead of firebase. Firestore has caching/offline support built in.

@vixson
Copy link

vixson commented Sep 26, 2018

@MayGo But would't that require you moving the whole data stored on the realtime DB down to firestore DB?

@MayGo
Copy link

MayGo commented Sep 26, 2018

@vixson yes.

@vixson
Copy link

vixson commented Sep 26, 2018

Damn that is a gonna be stressful. please is there a way to move the data automatically on firebase

@kevinrodriguez-io
Copy link

I have this issue too... Any known version working with firebase@4.12.1 ?

@vixson
Copy link

vixson commented Sep 27, 2018

I have this issue too... Any known version working with firebase@4.12.1 ?

Facing the same problem here. seriously
@PgPedroGabriel, @sdanieljose, @MayGo, @kevinrodriguez-io, unfortunately, you would have to stick with the old angularfire2 version 40.0.-rc.0.
That is if you want to still use the firebase realtime.

@kevinrodriguez-io
Copy link

In the end It was easier for me to switch to firestore. Will keep using firestore in the future for all of my projects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants