@angular/build: TS2307: Cannot find module 'firebase/compat'
- 主要語言
- TypeScript
- 星號
- 7.8k
- 分支
- 2.2k
- 平均合併
- 22 小時 28 分鐘
- 30 天內合併 PR
- 6
描述
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.
貢獻指南
研究方向
使用 @angular/fire compat storage 重現 Angular 20 遷移,並將新的 builder 與 @angular-devkit/build-angular 進行比較。從所參照的 @angular/fire/compat/storage/index.d.ts 中對 firebase/compat 的 import 以及 builder 遷移輸出開始。遷移後的應用程式能夠在沒有 TS2307 的情況下建置即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, firebase, typescript
- 領域
- build-system
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100