ngrx-fire icon indicating copy to clipboard operation
ngrx-fire copied to clipboard

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

Open JNaomad opened this issue 8 years ago • 2 comments

Hi, thanks for your demo app, I have a trouble with angularfire2 deps : Webpack compil : Namespace 'firebase' has no exported member 'Promise'.

Kevin

JNaomad avatar Dec 02 '17 15:12 JNaomad

firebase.Promise was removed in version 4.5.0 of the firebase SDK. Now you just use a regular Promise. The following modification fixes your sample.

protected googleLogin(): firebase.Promise

protected googleLogin(): Promise

RBleyenberg avatar Dec 03 '17 10:12 RBleyenberg

Thanks for your reply, This is already done.. but i have a trouble in deps :

** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200 ** Date: 2017-12-03T11:27:24.559Z Hash: 234313787076e701c731 Time: 13536ms chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry] [rendered] chunk {main} main.bundle.js, main.bundle.js.map (main) 49.4 kB {vendor} [initial] [rendered] chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 217 kB {inline} [initial] [rendered] chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 11.6 kB {inline} [initial] [rendered] chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 4.07 MB [initial] [rendered]

ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/interfaces.d.ts (12,32): Namespace 'firebase' has no exported member 'Promise'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/interfaces.d.ts (13,35): Namespace 'firebase' has no exported member 'Promise'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/interfaces.d.ts (14,35): Namespace 'firebase' has no exported member 'Promise'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/interfaces.d.ts (15,44): Namespace 'firebase' has no exported member 'Promise'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/app/firebase.app.module.d.ts (5,22): Class 'FirebaseApp' incorrectly implements interface 'App'. Property 'firestore' is missing in type 'FirebaseApp'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/app/firebase.app.module.d.ts (12,28): Namespace 'firebase' has no exported member 'Promise'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/database/firebase_list_observable.d.ts (14,62): Namespace 'firebase' has no exported member 'Promise'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/database/firebase_list_observable.d.ts (15,48): Namespace 'firebase' has no exported member 'Promise'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/database/firebase_list_observable.d.ts (16,92): Namespace 'firebase' has no exported member 'Promise'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/database/firebase_object_observable.d.ts (11,31): Namespace 'firebase' has no exported member 'Promise'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/database/firebase_object_observable.d.ts (12,37): Namespace 'firebase' has no exported member 'Promise'. ERROR in c:/KevTaf/ngrxFire/node_modules/angularfire2/database/firebase_object_observable.d.ts (13,24): Namespace 'firebase' has no exported member 'Promise'.

webpack: Failed to compile.

JNaomad avatar Dec 03 '17 11:12 JNaomad