【问题标题】:Uncaught Error: Expected a value of type 'FutureOr<UserCredentialJsImpl>', but got one of type 'MemoryInfo'未捕获的错误:预期类型为“FutureOr<UserCredentialJsImpl>”的值,但得到类型为“MemoryInfo”的值之一
【发布时间】:2020-12-12 12:22:19
【问题描述】:

所以我正在尝试修复 AngularDart 旧版应用程序上的一些错误

我认为问题出在 Firebase 身份验证上?

这是我的代码

import 'package:firebase/firebase.dart' as firebase;
 try {
       await firebase
        .auth()
        .signInWithEmailAndPassword('email', 'password')
        .then((value) => print('success'));
    } catch (e) {
      print(e);
    }

但是当我尝试执行这个时,我得到了这个错误

这是我的依赖项

Dart VM version: 2.7.1
firebase: 5.0.4

感谢任何形式的帮助,因为我没有 AngularDart 的经验 谢谢!

【问题讨论】:

    标签: firebase dart firebase-authentication angular-dart


    【解决方案1】:

    我遇到了同样的问题。帮助将我的 dart 版本更新为 2.10.4 并将 pubspec.yaml 中的 build_web_compilers 更新为 build_web_compilers: ^2.10.0

    【讨论】:

    • 谢谢!!谢谢!!谢谢!!谢谢!!谢谢!!谢谢!!
    猜你喜欢
    • 2021-11-04
    • 2021-05-29
    • 1970-01-01
    • 2021-06-22
    • 1970-01-01
    • 2021-11-03
    • 2022-10-14
    • 1970-01-01
    • 2022-01-26
    相关资源
    最近更新 更多