Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase 未捕获错误:应为类型为';未来者<;UserCredentialJsImpl>';,但是得到了一个类型';记忆信息';_Firebase_Dart_Firebase Authentication_Angular Dart - Fatal编程技术网

Firebase 未捕获错误:应为类型为';未来者<;UserCredentialJsImpl>';,但是得到了一个类型';记忆信息';

Firebase 未捕获错误:应为类型为';未来者<;UserCredentialJsImpl>';,但是得到了一个类型';记忆信息';,firebase,dart,firebase-authentication,angular-dart,Firebase,Dart,Firebase Authentication,Angular Dart,所以我正在尝试修复AngularDart遗留应用程序上的一些错误 我认为问题在于firebase auth 这是我的密码 import 'package:firebase/firebase.dart' as firebase; try { await firebase .auth() .signInWithEmailAndPassword('email', 'password') .then((value) => print(

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

我认为问题在于firebase auth

这是我的密码

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方面没有经验
谢谢
我也有同样的问题。帮助我的是将dart版本更新为
2.10.4
,并将pubspec.yaml中的build\u web\u编译器更新为
build\u web\u编译器:^2.10.0

谢谢!!非常感谢。非常感谢。非常感谢。非常感谢。非常感谢。