Skip to content

🐛 [firebase_auth_web] Expected a value of type 'JavaScriptObject', but got one of type 'TypeErrorImpl' after upgrade #12238

@SlavisDEV

Description

@SlavisDEV

Bug report

Describe the bug
I upgraded Flutter & Firebase plugins, after that my auth flow (only for web) stopped working.

Steps to reproduce

Steps to reproduce the behavior:

  1. Try to sign in using email & password
  2. See error or incorrect behavior
Error: Expected a value of type 'JavaScriptObject', but got one of type 'TypeErrorImpl'
dart:sdk_internal 5679:11                                                                        throw_
dart:sdk_internal 5638:15                                                                        castError
dart:sdk_internal 5982:19                                                                        cast
dart:sdk_internal 5243:19                                                                        as_C
packages/firebase_auth_web/src/firebase_auth_web_recaptcha_verifier_factory.dart.lib.js 313:52   getFirebaseAuthException
packages/firebase_auth_web/src/firebase_auth_web_recaptcha_verifier_factory.dart.lib.js 1368:34  signInWithEmailAndPassword
dart:sdk_internal 40298:33                                                                       <fn>
dart:sdk_internal 40169:59                                                                       runUnary
dart:sdk_internal 35563:29                                                                       handleValue
dart:sdk_internal 36151:49                                                                       handleValueCallback
dart:sdk_internal 36189:17                                                                       _propagateToListeners
dart:sdk_internal 36030:23                                                                       [_completeWithValue]
dart:sdk_internal 36064:35                                                                       callback
dart:sdk_internal 40602:13                                                                       _microtaskLoop
dart:sdk_internal 40608:13                                                                       _startMicrotaskLoop
dart:sdk_internal 36410:9                                                                        <fn>

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.16.9, on Microsoft Windows [Version 10.0.22631.3007], locale pl-PL)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.85.1)
[√] Connected device (3 available)
[√] Network resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: webIssues / PRs which are specifically for web.plugin: authresolution: fixedA fix has been merged or is pending merge from a PR.type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions