mercredi 21 avril 2021

TypeError: dart.global.firebase.firestore is not a function

I'm trying to use Firebase in my flutter web project.

at Object.getFirestoreInstance (http://localhost:63583/packages/cloud_firestore_web/src/interop/utils/utils.dart.lib.js:1050:79) at new cloud_firestore_web.FirebaseFirestoreWeb.new (http://localhost:63583/packages/cloud_firestore_web/src/write_batch_web.dart.lib.js:865:37) at Function.registerWith (http://localhost:63583/packages/cloud_firestore_web/src/write_batch_web.dart.lib.js:788:73) at Object.registerPlugins (http://localhost:63583/packages/taxi_flutter_app/generated_plugin_registrant.dart.lib.js:34:46) at main (http://localhost:63583/web_entrypoint.dart.lib.js:41:35) at main.next () at runBody (http://localhost:63583/dart_sdk.js:37228:34) at Object._async [as async] (http://localhost:63583/dart_sdk.js:37259:7) at main$ (http://localhost:63583/web_entrypoint.dart.lib.js:40:18) at http://localhost:63583/main_module.bootstrap.js:19:10 at Array.forEach () at window.$dartRunMain (http://localhost:63583/main_module.bootstrap.js:18:32) at :1:8 at Object.runMain (http://localhost:63583/dwds/src/injected/client.js:8656:21) at http://localhost:63583/dwds/src/injected/client.js:22068:19 at _wrapJsFunctionForAsync_closure.$protected (http://localhost:63583/dwds/src/injected/client.js:3830:15) at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:63583/dwds/src/injected/client.js:10905:12) at Object._asyncStartSync (http://localhost:63583/dwds/src/injected/client.js:3794:20) at main__closure1.$call$body$main__closure (http://localhost:63583/dwds/src/injected/client.js:22080:16) at main__closure1.call$1 (http://localhost:63583/dwds/src/injected/client.js:22007:19) at StaticClosure._rootRunUnary [as call$2$5] (http://localhost:63583/dwds/src/injected/client.js:4153:16) at _CustomZone.runUnary$2$2 (http://localhost:63583/dwds/src/injected/client.js:12136:39) at _CustomZone.runUnaryGuarded$1$2 (http://localhost:63583/dwds/src/injected/client.js:12068:14) at _ControllerSubscription._sendData$1 (http://localhost:63583/dwds/src/injected/client.js:11697:19) at _DelayedData.perform$1 (http://localhost:63583/dwds/src/injected/client.js:11849:59) at _PendingEvents_schedule_closure.call$0 (http://localhost:63583/dwds/src/injected/client.js:11898:14) at Object._microtaskLoop (http://localhost:63583/dwds/src/injected/client.js:3990:24) at StaticClosure._startMicrotaskLoop (http://localhost:63583/dwds/src/injected/client.js:3996:11) at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (http://localhost:63583/dwds/src/injected/client.js:10774:9) at invokeClosure (http://localhost:63583/dwds/src/injected/client.js:1250:26) at MutationObserver. (http://localhost:63583/dwds/src/injected/client.js:1269:18)




Aucun commentaire:

Enregistrer un commentaire