@angular/build: TS2307: Cannot find module 'firebase/compat'
- Langage dominant
- TypeScript
- Étoiles
- 7.8k
- Forks
- 2.2k
- Merge moyen
- 22 h 28 min
- PR mergées (30 j)
- 6
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez la migration Angular 20 avec @angular/fire compat storage et comparez le nouveau builder avec @angular-devkit/build-angular. Commencez par l’import de firebase/compat dans @angular/fire/compat/storage/index.d.ts mentionné et par la sortie de la migration du builder. La tâche est terminée lorsque l’application migrée se compile sans TS2307.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, firebase, typescript
- Domaine
- build-system
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100