已关闭,此问题需要details or clarity,目前不接受回答。
**想要改进此问题吗?**通过editing this post添加详细信息并澄清问题。
2天前关闭。
Improve this question
Launching lib\main.dart on Edge in debug mode...
Waiting for connection from debug service on Edge...
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:30:44: Error: Type 'firebase.App' not found.
static Map<String, Future<void> Function(firebase.App)> _registeredServices = {};
^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:32:36: Error: Type 'firebase.App' not found.
required Future<void> Function(firebase.App) ensurePluginInitialized,
^^^^^^^^^^^^
org-dartlang-app:/web_plugin_registrant.dart:16:3: Error: Undefined name 'FirebaseCoreWeb'.
FirebaseCoreWeb.registerWith(registrar);
^^^^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:30:44: Error: 'firebase.App' can't be used as a type because 'firebase' isn't defined.
static Map<String, Future<void> Function(firebase.App)> _registeredServices = {};
^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:32:36: Error: 'firebase.App' can't be used as a type because 'firebase' isn't defined.
required Future<void> Function(firebase.App) ensurePluginInitialized,
^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:38:12: Error: Method not found: 'FirebaseAuthWeb_'.
return FirebaseAuthWeb_();
^^^^^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:43:5: Error: Undefined name 'FirebaseCoreWeb'.
FirebaseCoreWeb.registerService(
^^^^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:104:28: Error: No named parameter with the name 'app'.
return FirebaseAuthWeb(app: app);
^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:27:7: Context: The class 'FirebaseAuthWeb' has a constructor that takes no arguments.
class FirebaseAuthWeb extends FirebaseAuthPlatform {
^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:214:11: Error: The getter '_initialized' isn't defined for the class 'FirebaseAuthWeb'.
- 'FirebaseAuthWeb' is from 'package:firebase_auth_web/firebase_auth_web.dart' ('../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named '_initialized'.
await _initialized.future;
^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:221:11: Error: The getter '_initialized' isn't defined for the class 'FirebaseAuthWeb'.
- 'FirebaseAuthWeb' is from 'package:firebase_auth_web/firebase_auth_web.dart' ('../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named '_initialized'.
await _initialized.future;
^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart:228:11: Error: The getter '_initialized' isn't defined for the class 'FirebaseAuthWeb'.
- 'FirebaseAuthWeb' is from 'package:firebase_auth_web/firebase_auth_web.dart' ('../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named '_initialized'.
await _initialized.future;
^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-2.10.0/lib/firebase_core_web.dart:10:7: Error: Undefined name 'js_util'.
if (js_util.getProperty(e, 'name') == 'FirebaseError') {
^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-2.10.0/lib/firebase_core_web.dart:11:12: Error: Undefined name 'js_util'.
return js_util.getProperty(e, 'code') ?? '';
^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-2.10.0/lib/firebase_core_web.dart:12:19: Error: 'firebase.FirebaseError' can't be used as a type because 'firebase' isn't defined.
} else if (e is firebase.FirebaseError) {
^^^^^^^^^^^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-2.10.0/lib/firebase_core_web.dart:25:12: Error: 'firebase.FirebaseError' can't be used as a type because 'firebase' isn't defined.
if (e is firebase.FirebaseError) { // Use `is` to directly check type
^^^^^^^^^^^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/src/utils/web_utils.dart:121:9: Error: The argument type 'MultiFactorResolver' can't be assigned to the parameter type 'FirebaseAuthWeb'.
- 'MultiFactorResolver' is from 'package:firebase_auth_web/src/interop/multi_factor.dart' ('../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/src/interop/multi_factor.dart').
- 'FirebaseAuthWeb' is from 'package:firebase_auth_web/firebase_auth_web.dart' ('../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart').
resolverWeb,
^
../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/src/utils/web_utils.dart:122:25: Error: The argument type 'FirebaseAuthWeb' can't be assigned to the parameter type 'MultiFactorResolver'.
- 'FirebaseAuthWeb' is from 'package:firebase_auth_web/firebase_auth_web.dart' ('../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/firebase_auth_web.dart').
- 'MultiFactorResolver' is from 'package:firebase_auth_web/src/interop/multi_factor.dart' ('../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-5.8.12/lib/src/interop/multi_factor.dart').
FirebaseAuthWeb.instance,
^
Failed to compile application.
希望得到好的答案,请
1条答案
按热度按时间iq3niunx1#
这个命令序列解决了我的问题
字符串