Skip to content
Advertisement

Tag: firebase

Firebase function deploy fails with requiring external code

I am trying to re-use existing Express application and basically port it to firebase functions. I have a project structure like this: /src/app/index.js /functions/index.js The whole set up works well when using firebase emulators:start. I can call the functions and everything works properly. However I am unable to deploy the functions as I get this error message: Function failed on

Firebase.auth().useEmulator is not a function

I currently have a project set up through VueCLI and firebase-tools and can’t seem to be able to attach the Firebase Auth emulator to my project locally. My Firebase Set-up file: My .env.development file When navigating to localhost:5000 (emulated hosting), I get the error: Uncaught TypeError: firebase_app__WEBPACK_IMPORTED_MODULE_0___default.a.auth(…).useEmulator is not a function useEmulator comes directly from Google’s Firebase Documentation so I’m

How to add data to a nested object in Firestore

This is my current Firestore in Firebase. I need help adding data to the savedSearches map. I need to use .set() (because a users savedSearches might not exist). My current attempt looks like this: But this doesn’t add an object within savedSearches with a unique ID. When I was using Firebase Realtime Database I was just doing this: And that

firebase order by datetime desc and asc

so i learn something new from firebase realtime for chat purpose.. but i still confuse how to make an action “how to order by like php” so i have some code like this here my database How to order limit asc and desc method with lastupdate child? im search for reference that mostly tutorial for android. Answer You’re already retrieving

Upgrade to Firebase JS 8.0.0: Attempted import error: ‘app’ is not exported from ‘firebase/app’ (imported as ‘firebase’)

After upgrading to 8.0.0, I get the following error: Attempted import error: ‘initializeApp’ is not exported from ‘firebase/app’ (imported as ‘firebase’). My import looks like this: TypeScript also complains: Property ‘initializeApp’ does not exist on type ‘typeof import(“/path/to/my/file”)’. ts(2339) How do I fix this? Answer In version 8.0.0, the Firebase SDK had a breaking change in the way it handles

Advertisement