when you run the application on dart on the web, it returns an error. Help me, what is the reason?
Answered
when you run the application on dart on the web, it returns an error. Help me, what is the reason?
Waiting for connection from debug service on Chrome...
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth_interop.dart:26:10: Error: Type 'PromiseJsImpl' not found.
external PromiseJsImpl<void> applyActionCode(AuthJsImpl auth, String oobCode);
^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth_interop.dart:38:10: Error: Type 'PromiseJsImpl' not found.
external PromiseJsImpl<ActionCodeInfo> checkActionCode(
^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth_interop.dart:42:10: Error: Type 'PromiseJsImpl' not found.
external PromiseJsImpl<void> confirmPasswordReset(
^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth_interop.dart:55:10: Error: Type 'PromiseJsImpl' not found.
external PromiseJsImpl<void> setPersistence(
^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth_interop.dart:59:10: Error: Type 'PromiseJsImpl' not found.
external PromiseJsImpl<UserCredentialJsImpl> createUserWithEmailAndPassword(
^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth_interop.dart:70:10: Error: Type 'PromiseJsImpl' not found.
^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth.dart:989:7: Error: The method 'handleThenable' isn't defined for the class 'PhoneAuthProvider'.
- 'PhoneAuthProvider' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleThenable'.
handleThenable(jsObject.verifyPhoneNumber(
^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth.dart:1016:30: Error: The method 'handleThenable' isn't defined for the class 'ApplicationVerifier<T>'.
- 'ApplicationVerifier' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleThenable'.
Future<String> verify() => handleThenable(jsObject.verify());
^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth.dart:1072:27: Error: The method 'handleThenable' isn't defined for the class 'RecaptchaVerifier'.
- 'RecaptchaVerifier' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleThenable'.
Future<num> render() => handleThenable(jsObject.render());
^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth.dart:1093:7: Error: The method 'handleThenable' isn't defined for the class 'ConfirmationResult'.
- 'ConfirmationResult' is from 'package:firebase_auth_web/src/interop/auth.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.8.13/lib/src/interop/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleThenable'.зависимости такие:
name: aichatflutter
description: "A new Flutter project."
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: '>=3.2.3 <4.0.0'
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
provider: ^6.1.1
intl: ^0.20.2
cached_network_image: ^3.3.1
path_provider: ^2.1.2
firebase_core: 2.24.2
firebase_database: 10.3.8
js: 0.6.7
firebase_auth: 4.10.0
dependency_overrides:
firebase_core_platform_interface: 5.0.0
firebase_auth_platform_interface: 7.0.9
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0
flutter:
uses-material-design: true
assets:
- assets/settings.json
Please sign in to leave a comment.
Please try the tips from https://github.com/flutter/flutter/issues/160821.
If it doesn't help, I'd suggest contacting the flutterfire plugin vendor.
you should have a firebase web config file, and there you need to update the data taken from firebase. Then you need to reinstall the dependencies in the pubspec.yaml files