skip to Main Content

Firebase – error TS2300: Duplicate identifier 'type' in Angular. while running ng build

Error: node_modules/@firebase/auth-compat/dist/auth-compat/index.d.ts:53:10 - error TS2300: Duplicate identifier 'type'. Try to build angular code, i am getting below error in cmd. import { type User, type Unsubscribe, type ActionCodeInfo, type UserCredential, type Auth, type IdTokenResult, type MultiFactorError, type MultiFactorResolver, type PopupRedirectResolver,…

VIEW QUESTION

How to get key from Observable? – SEO

I am trying to read data from firebase using angular 2 and typescript my code export class DashboardComponent implements OnInit { itemsRef: AngularFireList<any>; items: Observable<any[]>; constructor( afDatabase: AngularFireDatabase) { this.itemsRef = afDatabase.list('/user_orders/louro'); this.items = this.itemsRef.valueChanges(); this.items.subscribe(val_2 => { alert(val_2.keys()); val_2.forEach(function…

VIEW QUESTION
Back To Top
Search