angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

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

Open rala72 opened this issue 1 month ago • 0 comments

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/@[email protected]_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.

rala72 avatar Nov 21 '25 22:11 rala72