googlearchive / firebase-dart

Dart wrapper for Firebase
https://pub.dev/packages/firebase
404 stars 144 forks source link

Uncaught Error: Expected a value of type 'FutureOr<UserCredentialJsImpl>', but got one of type 'MemoryInfo' #367

Closed ianvillamia closed 3 years ago

ianvillamia commented 3 years ago

Problem with Firebase Auth while using angular Dart

Dependencies: Dart VM version: 2.7.1 firebase: 5.0.4

error Uncaught Error: Expected a value of type 'FutureOr', but got one of type 'MemoryInfo'

image

Code

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

We do this here and have had no such issues

https://github.com/FirebaseExtended/firebase-dart/blob/32539e94cdba5a56c878a06190b542d32169d148/firebase/example/auth/index.dart#L105-L109

Please reopen with more reproduction details if you still have this problem