Skip to content

@angular/build: TS2307: Cannot find module 'firebase/compat' #3677

Description

@rala72

I currently have an Angular 20 application with storage.
I tried to migrate to the new builder system and after running the migration script I get:

X [ERROR] TS2307: Cannot find module 'firebase/compat' or its corresponding type declarations. [plugin angular-compiler]

node_modules/.pnpm/@angular+fire@20.0.1_b3d6211399b528bde26c95436c0ed9a1/node_modules/@angular/fire/compat/storage/index.d.ts:9:33:
  9 │ import * as firebase_compat from 'firebase/compat';
    ╵                                  ~~~~~~~~~~~~~~~~~

With @angular-devkit/build-angular it works fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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