adriancarriger / angularfire2-offline

🔌 A simple wrapper for AngularFire2 to read and write to Firebase while offline, even after a complete refresh.
https://angularfire2-offline.firebaseapp.com/
MIT License
207 stars 48 forks source link

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

Open PgPedroGabriel opened 6 years ago

PgPedroGabriel commented 6 years ago

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 commented 6 years ago

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

sdanieljose commented 6 years ago

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 commented 6 years ago

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

vixson commented 5 years ago

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

MayGo commented 5 years ago

@vixson yes.

vixson commented 5 years ago

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

kevinrodriguez-io commented 5 years ago

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

vixson commented 5 years ago

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 commented 5 years ago

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