angular / angular/angularfire

FCM -> Angular Build Optimization Message Error

未关闭
#3,600 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
22 小时 28 分钟
30 天内合并 PR
6

描述

When Angular's build optimization flag is set to true in angular.json. the line throws: Service messaging is not available
provideMessaging(() => getMessaging()),

Also check this image for reference from this issue: https://github.com/firebase/firebase-js-sdk/issues/7707

![Image](https://github.com/user-attachments/assets/45368703-3b42-41a9-8c67-947543044514)

Please help out. thanks.

贡献指南

打开贡献指南

调研方向

从报告中描述的 angular.json 构建优化设置和 provideMessaging(() => getMessaging()) 入口点开始。将该故障与链接的 Firebase issue 进行比较,并复现一个启用优化的 Angular 构建;当 messaging 初始化时不再出现报告中的“Service messaging is not available”错误,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, firebase, typescript
领域
build-system, frontend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。