Aginix / nestjs-firebase-admin

Firebase Admin Module for Nest.js Framework
MIT License
108 stars 37 forks source link

has no exported member 'admin' #315

Closed gperdomor closed 3 years ago

gperdomor commented 3 years ago

Im trying to build my app but I got this errors:

node_modules/@aginix/nestjs-firebase-admin/dist/services/firebase-admin-authentication.service.d.ts:5:51 - error TS2694: Namespace '"/src/node_modules/firebase-admin/lib/auth/index"' has no exported member 'admin'.

5     get auth(): import("firebase-admin/lib/auth").admin.auth.Auth;
                                                    ~~~~~

node_modules/@aginix/nestjs-firebase-admin/dist/services/firebase-admin-database.service.d.ts:4:14 - error TS2416: Property 'app' in type 'FirebaseDatabaseService' is not assignable to the same property in base type 'Database'.
  Property 'automaticDataCollectionEnabled' is missing in type 'App' but required in type 'FirebaseApp'.

4     readonly app: admin.app.App;
               ~~~

  node_modules/@firebase/app-types/index.d.ts:50:3
    50   automaticDataCollectionEnabled: boolean;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'automaticDataCollectionEnabled' is declared here.

node_modules/@aginix/nestjs-firebase-admin/dist/services/firebase-admin-database.service.d.ts:6:59 - error TS2694: Namespace '"/src/node_modules/firebase-admin/lib/database/index"' has no exported member 'admin'.

6     get database(): import("firebase-admin/lib/database").admin.database.Database;
                                                            ~~~~~

node_modules/@aginix/nestjs-firebase-admin/dist/services/firebase-admin-firestore.service.d.ts:2:22 - error TS2720: Class 'FirebaseFirestoreService' incorrectly implements class 'Firestore'. Did you mean to extend 'Firestore' and inherit its members as a subclass?
  Property 'bundle' is missing in type 'FirebaseFirestoreService' but required in type 'Firestore'.

2 export declare class FirebaseFirestoreService implements FirebaseFirestore.Firestore {
                       ~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@google-cloud/firestore/types/firestore.d.ts:319:5
    319     bundle(bundleId?: string): BundleBuilder;
            ~~~~~~
    'bundle' is declared here.

node_modules/@aginix/nestjs-firebase-admin/dist/services/firebase-admin-messaging.service.d.ts:5:61 - error TS2694: Namespace '"/src/node_modules/firebase-admin/lib/messaging/index"' has no exported member 'admin'.

5     get messaging(): import("firebase-admin/lib/messaging").admin.messaging.Messaging;
                                                              ~~~~~

node_modules/@aginix/nestjs-firebase-admin/dist/services/firebase-admin-remote-config.service.d.ts:5:68 - error TS2694: Namespace '"/src/node_modules/firebase-admin/lib/remote-config/index"' has no exported member 'admin'.

5     get remoteConfig(): import("firebase-admin/lib/remote-config").admin.remoteConfig.RemoteConfig;
                                                                     ~~~~~

node_modules/@aginix/nestjs-firebase-admin/dist/services/firebase-admin-storage.service.d.ts:6:57 - error TS2694: Namespace '"/src/node_modules/firebase-admin/lib/storage/index"' has no exported member 'admin'.

6     get storage(): import("firebase-admin/lib/storage").admin.storage.Storage;
                                                          ~~~~~

[4:28:50 PM] Found 7 errors. Watching for file changes.
CodingAleCR commented 3 years ago

I am also getting this error after updating firebase-admin to 9.4.2 and nestjs-firebase-admin to 2.0.2

shahkeyur commented 3 years ago

Is there any update here ?

n3n commented 3 years ago

@shahkeyur @CodingAleCR @gperdomor Could you try v2.1.0?. I just published with latest firebase-admin.

CodingAleCR commented 3 years ago

Will do and get back to you ASAP. Thanks!