Firebase initializer doesn't works #3981
Unanswered
enzodanjour
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know what is causing my web flutter application to not run:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.23.0-18.1.pre, on Linux, locale
pt_BR.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version
30.0.2)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.50.1)
[✓] Connected device (2 available)
! Doctor found issues in 1 category.
pubspec:
dependencies:
flutter:
sdk: flutter
flutter_modular: ^2.0.1
firebase_auth: ^0.16.1
firebase: ^7.2.1
provider: ^4.0.
cloud_firestore: ^0.13.4+2
firebase_core: ^0.4.5
the console is:
errors.ts:101 Uncaught (in promise) FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app).
at Object.p [as app] (https://www.gstatic.com/firebasejs/7.5.0/firebase-app.js:1:10100)
at Object.app$ [as app] (http://localhost:33197/packages/firebase/src/top_level.dart.lib.js:78:56)
at new cloud_firestore_web.FirestoreWeb.new (http://localhost:33197/packages/cloud_firestore_web/src/write_batch_web.dart.lib.js:802:57)
at Function.registerWith (http://localhost:33197/packages/cloud_firestore_web/src/write_batch_web.dart.lib.js:747:71)
at Object.registerPlugins (http://localhost:33197/packages/pagow_web/generated_plugin_registrant.dart.lib.js:15:38)
at main (http://localhost:33197/web_entrypoint.dart.lib.js:29:35)
at main.next ()
at runBody (http://localhost:33197/dart_sdk.js:37699:34)
at Object._async [as async] (http://localhost:33197/dart_sdk.js:37730:7)
at main$ (http://localhost:33197/web_entrypoint.dart.lib.js:28:18)
at http://localhost:33197/main_module.bootstrap.js:20:10
at Array.forEach ()
at window.$dartRunMain (http://localhost:33197/main_module.bootstrap.js:19:32)
at :1:8
at Object.runMain (http://localhost:33197/dwds/src/injected/client.js:8764:21)
at http://localhost:33197/dwds/src/injected/client.js:22538:19
at _wrapJsFunctionForAsync_closure.$protected (http://localhost:33197/dwds/src/injected/client.js:3793:15)
at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:33197/dwds/src/injected/client.js:11010:12)
at Object._asyncStartSync (http://localhost:33197/dwds/src/injected/client.js:3757:20)
at main__closure1.$call$body$main__closure (http://localhost:33197/dwds/src/injected/client.js:22550:16)
at main__closure1.call$1 (http://localhost:33197/dwds/src/injected/client.js:22477:19)
at StaticClosure._rootRunUnary [as call$2$5] (http://localhost:33197/dwds/src/injected/client.js:4124:16)
at _CustomZone.runUnary$2$2 (http://localhost:33197/dwds/src/injected/client.js:12315:39)
at _CustomZone.runUnaryGuarded$1$2 (http://localhost:33197/dwds/src/injected/client.js:12247:14)
at _ControllerSubscription._sendData$1 (http://localhost:33197/dwds/src/injected/client.js:11798:19)
at _DelayedData.perform$1 (http://localhost:33197/dwds/src/injected/client.js:11950:59)
at _PendingEvents_schedule_closure.call$0 (http://localhost:33197/dwds/src/injected/client.js:11999:14)
at Object._microtaskLoop (http://localhost:33197/dwds/src/injected/client.js:3960:24)
at StaticClosure._startMicrotaskLoop (http://localhost:33197/dwds/src/injected/client.js:3966:11)
at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (http://localhost:33197/dwds/src/injected/client.js:10879:9)
at invokeClosure (http://localhost:33197/dwds/src/injected/client.js:1204:26)
at MutationObserver. (http://localhost:33197/dwds/src/injected/client.js:1223:18)
s @ errors.ts:101
c.create @ errors.ts:128
p @ firebaseNamespaceCore.ts:108
app$ @ top_level.dart:78
cloud_firestore_web.FirestoreWeb.new @ cloud_firestore_web.dart:33
registerWith @ cloud_firestore_web.dart:26
registerPlugins @ generated_plugin_registrant.dart:16
main @ web_entrypoint.dart:14
runBody @ async_patch.dart:84
_async @ async_patch.dart:123
main$ @ web_entrypoint.dart:13
(anonymous) @ main_module.bootstrap.js:20
window.$dartRunMain @ main_module.bootstrap.js:19
(anonymous) @ VM351:1
runMain @ client.js:8764
(anonymous) @ client.js:22538
(anonymous) @ client.js:3793
call$2 @ client.js:11010
_asyncStartSync @ client.js:3757
$call$body$main__closure @ client.js:22550
call$1 @ client.js:22477
_rootRunUnary @ client.js:4124
runUnary$2$2 @ client.js:12315
runUnaryGuarded$1$2 @ client.js:12247
_sendData$1 @ client.js:11798
perform$1 @ client.js:11950
call$0 @ client.js:11999
_microtaskLoop @ client.js:3960
_startMicrotaskLoop @ client.js:3966
call$1 @ client.js:10879
invokeClosure @ client.js:1204
(anonymous) @ client.js:1223
Promise.then (async)
_scheduleImmediateWithPromise @ async_patch.dart:164
_scheduleImmediate @ async_patch.dart:136
_scheduleAsyncCallback @ schedule_microtask.dart:72
_rootScheduleMicrotask @ zone.dart:1257
scheduleMicrotask @ zone.dart:1470
[_asyncCompleteError] @ future_impl.dart:592
_asyncCompleteWithErrorCallback @ future.dart:955
runBody @ async_patch.dart:117
_async @ async_patch.dart:123
main$ @ web_entrypoint.dart:13
(anonymous) @ main_module.bootstrap.js:20
window.$dartRunMain @ main_module.bootstrap.js:19
(anonymous) @ VM351:1
runMain @ client.js:8764
(anonymous) @ client.js:22538
(anonymous) @ client.js:3793
call$2 @ client.js:11010
_asyncStartSync @ client.js:3757
$call$body$main__closure @ client.js:22550
call$1 @ client.js:22477
_rootRunUnary @ client.js:4124
runUnary$2$2 @ client.js:12315
runUnaryGuarded$1$2 @ client.js:12247
_sendData$1 @ client.js:11798
perform$1 @ client.js:11950
call$0 @ client.js:11999
_microtaskLoop @ client.js:3960
_startMicrotaskLoop @ client.js:3966
call$1 @ client.js:10879
invokeClosure @ client.js:1204
(anonymous) @ client.js:1223
childList (async)
call$1 @ client.js:10889
_scheduleAsyncCallback @ client.js:3980
_rootScheduleMicrotask @ client.js:4171
scheduleMicrotask @ client.js:4009
schedule$1 @ client.js:11981
_addPending$1 @ client.js:11789
_sendData$1 @ client.js:11621
add$1 @ client.js:11521
_onIncomingMessage$1 @ client.js:22090
eval @ VM332:3
invokeClosure @ client.js:1204
(anonymous) @ client.js:1223
Show 2 more frames
Beta Was this translation helpful? Give feedback.
All reactions