【发布时间】:2021-05-08 22:08:52
【问题描述】:
import { auth } from 'firebase/app'; // not compiling
引发链接错误:
“在‘firebase/app’中找不到导出‘auth’”
版本:Angular:11.1.0、rxjs@6.6.3、firebase@8.2.5、firebase-tools@7.16.2
我卸载了@angularfire2、@types/firebase - 我认为它们可能会导致这个错误, 我对 angular 和 firebase 很陌生,并试图使 firebase google 身份验证正常工作,请帮忙!
【问题讨论】:
-
尝试使用'import auth = firebase.auth'
-
我应该去哪里试试??????而不是“从'firebase / app'导入{auth};” ?
-
@angularfire2 实际上已被弃用。为什么不为此使用官方的角度库? github.com/angular/angularfire/blob/master/docs/auth/…
标签: angular firebase authentication firebase-authentication