Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

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

Closed
ianvillamia opened this issue Dec 13, 2020 · 1 comment

Comments

@ianvillamia
Copy link

ianvillamia commented Dec 13, 2020

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
Copy link
Contributor

kevmoo commented Dec 16, 2020

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

@kevmoo kevmoo closed this as completed Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants