【发布时间】:2021-01-19 13:40:05
【问题描述】:
我目前正在使用 Angular 5 开发 Web 项目,我想集成 Firebase 云消息传递以在应用程序上发送通知,但我遇到了很多我试图解决的问题。现在有两个我无法修复的错误:Namespace 'firebase.auth' 和 functions
错误看起来像:
ERROR in node_modules/angularfire2/auth/auth.d.ts(12,45): error TS2694: Namespace 'firebase.auth' has no exported member 'IdTokenResult'.
node_modules/angularfire2/firebase.app.module.d.ts(2,42): error TS2305: Module '"/Users/gerardtalla/dev/workspaces/ws-parcaune/pms/pms-frontend-2018/node_modules/firebase/app/index"' has no exported member 'functions'.
我该如何解决这个问题?我正在使用
Angular 5
“firebase”:“4.8.0”
"angularfire2": "^5.0.0-rc.5"
"@angular/cli": "~1.7.3"
如果有人有想法,请不要犹豫,请与我分享。非常感谢。
【问题讨论】:
-
像 5.x.x 这样的 angular 版本是什么?
-
@haifzhan Angular:5.2.9
标签: firebase firebase-cloud-messaging angular5 google-cloud-functions angular-cli-v6