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