Skip to content

failing build with @angular/fire@exp | v7.0.0-canary.fadc178 #2853

@ubaidazad

Description

@ubaidazad

Version info

Angular: 12.0.3

Firebase: 9.0.0-beta.2

AngularFire: 7.0.0-canary.fadc178

Other (e.g. Ionic/Cordova, Node, browser, operating system):

Node: 14.17.0

How to reproduce these conditions

Failing test unit, Stackblitz demonstrating the problem

Steps to set up and reproduce
use exp angular/fire and import AngularFireModule from @angular/fire/compat and try to build using ng build

Sample data and security rules

Debug output

** Errors in the JavaScript console **

Error: node_modules/@firebase/app-compat/dist/src/firebaseApp.d.ts:19:10 - error TS2305: Module '"@firebase/app"' has no exported member '_FirebaseAppInternal'.

19 import { _FirebaseAppInternal as _FirebaseAppExp } from "@firebase/app";
            ~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@firebase/firestore-compat/dist/esm2017/firestore/compat/index.d.ts:52:287 - error TS2459: Module '"@firebase/firestore"' declares 'EmulatorMockTokenOptions' locally, but it is not exported.

52 import { DocumentReference, CollectionReference, DocumentData, Query, PersistenceSettings, DocumentSnapshot, QuerySnapshot, FirebaseFirestore, Settings, LoadBundleTask, FirestoreError, Unsubscribe, SnapshotListenOptions, QueryConstraint, Transaction, SetOptions, UpdateData, FieldPath, EmulatorMockTokenOptions, WriteBatch } from "@firebase/firestore";
                                                                                                                                                                                                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@firebase/firestore/dist/exp/index.d.ts:8:10
    8 import { EmulatorMockTokenOptions } from '@firebase/util';
               ~~~~~~~~~~~~~~~~~~~~~~~~
    'EmulatorMockTokenOptions' is declared here.


** Output from firebase.database().enableLogging(true); **

** Screenshots **
image

Expected behavior

Should be able to build successfully without errors

Actual behavior

Getting above build errors

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