Error uploading image: Error: Either AngularFireModule has not been provided in your AppModule ( project v17 standalone)
- 主要言語
- TypeScript
- スター
- 7.8k
- フォーク
- 2.2k
- 平均マージ
- 22時間 28分
- マージ済み PR(30日)
- 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