cloud-function not working for the web platform #7103
Unanswered
hasanKhateb199
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.
-
hi, I don't know if this a bug or I am missing something with the implementation
I have flutter project connected to the firebase I use the follow dependncy
firebase_core: ^1.6.0 cloud_firestore: ^2.5.1 firebase_storage: ^10.0.3 firebase_auth: ^3.1.0 cloud_functions: ^3.0.3
also I include it this inside my index.html
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script> <script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>`` <script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
everything work fine in Android, IOS and Web expert the cloud function not working on the web platform
when the function called the console throw the follow error
dart.global.firebase.functions is not a function at Object.getFunctionsInstance (http://localhost:60781/packages/cloud_functions_web/interop/functions.dart.lib.js:137:39) at new cloud_functions_web.FirebaseFunctionsWeb.new (http://localhost:60781/packages/cloud_functions_web/cloud_functions_web.dart.lib.js:37:37) at cloud_functions_web.FirebaseFunctionsWeb.__.delegateFor (http://localhost:60781/packages/cloud_functions_web/cloud_functions_web.dart.lib.js:27:14)
the function calls works fine on the android and IOS platforms only on the web not working, all other firebase features works fine on all platforms
Beta Was this translation helpful? Give feedback.
All reactions