use both angular fire and firebase sdk code example Example 1: angular firebase ng add @angular/fire Example 2: angular firebase npm install firebase @angular/fire