Error uploading image: Error: Either AngularFireModule has not been provided in your AppModule ( project v17 standalone)
- 主要語言
- TypeScript
- 星號
- 7.8k
- 分支
- 2.2k
- 平均合併
- 22 小時 28 分鐘
- 30 天內合併 PR
- 6
描述
### Version info
**Angular: 17.3.0 **
**Firebase: 10.12.2**
**AngularFire: 17.1.0**
### Debug output
** Errors in the JavaScript console:
Error uploading image: Error: Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using
provideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).
at getSchedulers (angular-fire.mjs:142:11)
at runOutsideAngular (angular-fire.mjs:148:10)
at angular-fire.mjs:216:17
at _UploadService. (upload.service.ts:15:23)
at Generator.next ()
at main.js:18:61
at new ZoneAwarePromise (zone.js:2611:25)
at __async (main.js:2:10)
at _UploadService.uploadFile (upload.service.ts:12:30)
at _DialogExaminationFormUpdateComponent. (dialog-examination-form-update.component.ts:125:54)
**
** Screenshots

**
貢獻指南
研究方向
先重現上傳失敗問題並檢查 upload.service.ts,尤其是第 12 行和第 15 行的呼叫,接著追蹤 standalone 應用程式的 providers 如何設定。將該設定與錯誤所涉及的 AngularFire 初始化路徑進行比較。當圖片上傳不再引發此 provider 錯誤,且相關設定由清楚的重現或測試涵蓋時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, firebase, typescript
- 領域
- cloud, frontend
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100