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 摘要。