angularfire2-offline icon indicating copy to clipboard operation
angularfire2-offline copied to clipboard

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

Open PgPedroGabriel opened this issue 7 years ago • 9 comments

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'.

PgPedroGabriel avatar Mar 09 '18 19:03 PgPedroGabriel

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

MayGo avatar Mar 12 '18 06:03 MayGo

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!

sdanieljose avatar Jun 12 '18 10:06 sdanieljose

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

MayGo avatar Jun 12 '18 10:06 MayGo

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

vixson avatar Sep 26 '18 00:09 vixson

@vixson yes.

MayGo avatar Sep 26 '18 06:09 MayGo

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

vixson avatar Sep 26 '18 12:09 vixson

I have this issue too... Any known version working with [email protected] ?

0xC0A1 avatar Sep 27 '18 04:09 0xC0A1

I have this issue too... Any known version working with [email protected] ?

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.

vixson avatar Sep 27 '18 12:09 vixson

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

0xC0A1 avatar Oct 01 '18 16:10 0xC0A1