在 VS Code 中使用 <v-container>
<ChildComponent @open-child-settings="callbackMethod"/>
</v-container>
时出现此错误:
类型“typeof”上不存在属性“auth” import("/Users/USER-NAME/angular/PROJECT-NAME/node_modules/firebase/index")'.ts(2339)
这就是我导入 firebase 的方式:
firebase.auth
答案 0 :(得分:0)
修复方法是使用:import * as firebase from 'firebase/';
猜测有更新,但 AngularFire Auth documentation 尚未反映这些更改。
我希望有一种更好的方式来传达其中一些破译更新...
无论如何,希望这能帮到人!
答案 1 :(得分:0)
这对我有用。
import * as firebase from 'firebase/app';
也使用以下代替'firebase.auth'
<块引用>firebase.default.auth