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


So I’m trying to fix some bugs on a AngularDart legacy app

I think the problem is firebase auth?

here’s my code

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

But when I try to execute this I get this error

enter image description here

here are my dependencies

Dart VM version: 2.7.1
firebase: 5.0.4

Appreciate any kind of help as I’ve got no experience in AngularDart


I had the same problem. What helped was updating my dart version to 2.10.4 and also updating build_web_compilers in pubspec.yaml to build_web_compilers: ^2.10.0.

Answered By – Sonya

Answer Checked By – Marie Seifert (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *