Skip to content

angularfire2 5.0.0-rc-6.0 compatibility with firebase 4.13.1 #1576

Closed
@rezamohamed

Description

@rezamohamed

angularfire2 documentation has the following installation statement.

  npm install firebase angularfire2 --save

By default, this installs angularfire2 5.0.0-rc-6.0 and firebase 4.13.1.

When using firebase in a component

   import * as firebase from 'firebase';

I get the following error message on ng build/ng serve:

ERROR in node_modules/angularfire2/firebase.app.module.d.ts(10,22): error TS2420: Class 'FirebaseApp' incorrectly implements interface 'FirebaseApp'.
Property 'automaticDataCollectionEnabled' is missing in type 'FirebaseApp'.

SOLUTION: install firebase 4.12.1 - the error message does not show with this version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions