Angularfire: firebase 4.5.0 and firebase.Promise

Created on 3 Oct 2017  路  4Comments  路  Source: angular/angularfire

Hi guys,

With the new firebase sdk, the typings has changed and the AngularFire RC 2 got errors (not in the RC1) :

Firebase: 4.5.0

AngularFire: 4.0.0-rc2

With Typescript

Based on this commit : https://github.com/firebase/firebase-js-sdk/pull/172

* Errors in the JavaScript console *

typescript: node_modules/angularfire2/database/firebase_list_observable.d.ts, line: 15 
            Namespace 'firebase' has no exported member 'Promise'. 

typescript: node_modules/angularfire2/firebase.app.module.d.ts, line: 12

typescript: node_modules/angularfire2/database/interfaces.d.ts, line: 7 

...

You will need to update the typings of some files,

Regards

Most helpful comment

@tgensol The latest is out on npm!

All 4 comments

@tgensol Wait a few minutes and I'll have the new 5.0 version out with these fixes.

@davideast Perfect thanks !

@tgensol Just as an FYI though, the database breaking changes happen in 5.0 too. You can either upgrade to the new apI (recommended) or use the angularfire2/database-deprecated module for the time being.

@tgensol The latest is out on npm!

Was this page helpful?
0 / 5 - 0 ratings