Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [cloud_firestore] WEB: useFirestoreEmualtor throws Exception: NoSuchMethodError: 'code' ... Receiver: Instance of 'NativeError' #10947

Closed
just7mile opened this issue May 11, 2023 · 2 comments 路 Fixed by #10965
Assignees
Labels
platform: web Issues / PRs which are specifically for web. plugin: cloud_firestore resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working type: crash A compile error or crash

Comments

@just7mile
Copy link

Bug report

Flutter version: 3.10.0
cloud_firestore version: 4.6.0

Describe the bug
After upgrading to Flutter 3.10.0, FirebaseFirestore.instance.useFirestoreEmulator(...) started to throw Exception: NoSuchMethodError: 'code' on hot-reload/restart.

Exception: NoSuchMethodError: 'code'
method not found
Receiver: Instance of 'NativeError'
Arguments: []
When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:49      throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 813:3   defaultNoSuchMethod
dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 64:17                 noSuchMethod
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 808:31  noSuchMethod
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 135:10  dload
packages/cloud_firestore/src/firestore.dart 114:44                                useFirestoreEmulator
....
@just7mile just7mile added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels May 11, 2023
@darshankawar darshankawar added the triage Issue is currently being triaged. label May 12, 2023
@darshankawar
Copy link

Thanks for the report. Seeing the same behavior upon trying to hot reloading using the firestore emulator.

/cc @Lyokone

@darshankawar darshankawar added plugin: cloud_firestore platform: web Issues / PRs which are specifically for web. type: crash A compile error or crash and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels May 12, 2023
@matt-hall-zory
Copy link

matt-hall-zory commented May 14, 2023

I'm seeing similar errors on useAuthEmulator (only on hot reload/restart)

Error: Expected a value of type 'firebase_auth.Error', but got one of type 'NativeError'
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:49  throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 121:3   castError
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/types.dart 245:34   as
packages/firebase_auth_web/firebase_auth_web.dart 487:57                      useAuthEmulator

@Lyokone Lyokone self-assigned this May 15, 2023
@darshankawar darshankawar added the resolution: fixed A fix has been merged or is pending merge from a PR. label May 16, 2023
@firebase firebase locked and limited conversation to collaborators Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: web Issues / PRs which are specifically for web. plugin: cloud_firestore resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working type: crash A compile error or crash
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants