Our website is currently hosted on Firebase. However, there seems to be an issue as we have to refresh the website at least twice in order for it to load when visiting www.website.com. Update: We are unsure of what could be causing this problem. W ...
I have been attempting to access Firestore using a function I created that includes a collection variable. var fetchDataFromFirestore = function(collection, doc){ return promise = new Promise(function(resolve,reject){ //If doc param is null Quer ...
Does anyone have experience dealing with issues related to Firebase and its emulators? I keep encountering the following error during hot reload: FirebaseError: Firestore has already been started and its settings can no longer be changed. You can only mo ...
I am currently utilizing express to develop my firebase functions, and while I have a good grasp on creating standard callable functions, I am struggling with the implementation of trigger functions for background operations (such as onCreate, onDelete, on ...
I have encountered an issue with the code I am working on and both the result and error are throwing errors: ERROR in src/app/login/phone/phone.component.ts(48,75): error TS7006: Parameter 'result' implicitly has an 'any' type. src/app/login/phone/p ...
I'm encountering an error while trying to update my firebase functions: C:UsersMYNameAppDataRoaming pm ode_modulesfirebase-tools ode_modules@grpcgrpc-jsuildsrcindex.js:47 throw new Error(`@grpc/grpc-js only works on Node ${supportedN ...
I have written a code for the LeftBar Component where I am trying to retrieve data stored in the "contacts" document in Firebase. However, I am getting an empty array and I'm not sure why this is happening. Additionally, I would like to know how to ac ...
I have a variety of files such as images, videos, and audio stored in my firebase storage. My goal is to provide users with the ability to download these files to their computers by clicking on a download button. After reviewing the firebase documentation ...
I'm currently working on a NextJS app that uses the Firebase Admin SDK, but I'm unsure of where to securely store the JSON file containing all the keys. It seems that integrating secret keys in JSON files with an .env.local file is not possible. ...
Attempting to retrieve an image via busboy in a Node.js post call is resulting in the following error: Error: Unexpected end of multipart data thrown by .. ode_modulesdicerlibDicer.js:61:28 This snippet shows the code being used: busboy.on('file', ...
In my current project, I am developing an application that involves fetching data from a firebase database. This particular database does not require authentication, and I have already adjusted the access rules to allow for public access. One of the actio ...
Currently in the process of upgrading my Travis environment to node 20, where I am running a script that deploys Firebase functions. Below is my .travis.yml file: ... install: bash $HOME/build/ChangEdApps/changed-javascript/backend/shellScripts/travis-scr ...
My current challenge involves retrieving data from an external API using Firebase functions and displaying it in an Angular application hosted on Firebase. Billing is enabled for the project. The API call works fine on localhost, but fails to fetch data wh ...
Currently, I am integrating Typescript into my project. During this process, I made an interesting discovery. In the App.tsx file below, you will notice that I needed to use import firebase from "firebase/app" in order to access the firebase.ap ...
My objective is to replace the hardcoded array data with a download from Firebase Realtime Database and store it in either 4 separate arrays or an array of another array for each night club. The structure of the Firebase Realtime Database JSON can be foun ...
My current project involves a Typescript Nx + Next.js App integrated with Firebase (including Firebase Admin). In this codebase, I have defined a firebase admin util as shown below - // File ./utils/FirebaseAdmin.ts // import checkConfig from './check ...
I have a question regarding a snapshot; ref.orderByChild("index").equalTo(currentIndex).once("value", function(snapshot) {}) After printing the snapshot with ; console.log(snapshot.val()); This is the output that gets printed; {'-LBHEpgffPTQnxWIT4DI': ...
I have an array that contains a map with two values: title and content. https://i.stack.imgur.com/WLWVG.png I am trying to read all the values in the array as if it were a map. However, I have attempted this code without success. Can anyone assist me? {d ...
Tools I'm Utilizing Angular Firebase My Current Setup A component that showcases information about an 'Issue' Within the issue, there is another section called 'images' Under the image node, there are additional properties like 'image_title' Ob ...
My goal is to access the signin.js file using the path http://localhost:3000/auth/signin Below is my code from [...nextauth].js file: import NextAuth from "next-auth" import Provider from "next-auth/providers/google" export default N ...
I am currently implementing a like feature for my web application. The issue lies in the fact that my setLike function is not updating the state even after using setLike(!like). I verified this by adding console.log() statements before and after the setLik ...
Here is my TypeScript code designed to automatically record the time of data creation: import * as functions from 'firebase-functions'; export const onAccCreate = functions.database .ref('/Agent/{AgentID}') .onCreate((snapshot, context) => { //con ...
Currently, I am facing an issue in my Angular application that is integrated with Firebase Firestore database. The problem lies in updating a date field from a Firestore timestamp field. To provide some context, I have set up an update form which triggers ...
I am currently working on integrating an image into my Firebase's Firestore and Storage, and then displaying it on a v-card component. Here is the code for my v-card: <v-row> <v-col cols="3" v-for="massage in massages" ...
https://stackblitz.com/edit/dynamic-columns-mat-table This is the current status of my table implementation. The table renders perfectly, but my need is to dynamically set column names without prior knowledge. For instance: Instead of ${element.descript ...
When working on my next app, I encountered an error while trying to call a Firestore Collection. The specific error message that appeared when I ran the app was: FirebaseError: Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicat ...
Why is the component rendering correctly but the browser console is throwing an error? How can I resolve this issue? in firebase.js import * as firebase from "firebase/app"; const firebaseConfig = { apiKey: "my api code", authDomain: "mywebs ...
Hey there, I've been working on retrieving a Firebase object using Angular and have successfully achieved that. However, I'm now faced with the challenge of how to navigate deeper into the data that is being returned (check out the images linked ...
After developing a Next.js application, I integrated Firebase authentication and utilized the useContext hook for managing user state throughout the app. Here's the snippet of code for the AuthContext: auth.js import { createContext, useState, useEff ...
Does anyone have a solution for retrieving the unique id from Firebase? I've attempted using name(), name, key, and key() without any success. Although I can view the data, I'm struggling to find a way to retrieve the id. This information is crucial for m ...
Although I'm not a fan of hard coding, I've been struggling to find a solution to my problem and some explanations are just not clicking for me. The issue at hand involves three data products in the cart, product details, and placed order data from firest ...
Hi everyone, I'm trying to figure out if this issue is related to JavaScript or npm. If there's a problem with my JS code, could someone please help me identify it? PLEASE NOTE I used some code to get the current uid from Firebase. I'm ...
I am facing an issue while attempting to utilize Firestore within my React component. The specific error message reads "Unhandled Runtime Error: TypeError: firebase_firebaseConfig__WEBPACK_IMPORTED_MODULE_4_.db.collection is not a function." I am utilizing ...
Currently, I am utilizing React along with next.js and Google Cloud functions to host my application. Additionally, I am integrating firebase into the mix. One pressing issue I am facing pertains to efficiently configuring the staging and production enviro ...
Trying to push an array retrieved from firestore, but encountering issues where the array appears undefined. Here is the code snippet in question: const temp = []; const reference = firestore.collection("users").doc(user?.uid); firestore .collec ...
I am just beginning my journey in this field. Currently, I am using the IONIC framework to develop an application. The backends, which include authentication, storage, and a database, are hosted on Firebase. Additionally, I utilize some third-party APIs a ...
Having trouble installing firebase-server on my computer, as I keep getting an error during the process. Whenever I enter npm install firebase-server in my console, it fails consistently. You can find the npm log for this issue here: http://pastebin.com/ ...
I am encountering errors and facing issues with data retrieval in my Angular and Ionic application when using AngularFire for Firebase integration. Here is a snippet from my package.json file: "dependencies": { "@angular/common": "5.0.3", "@angul ...
I am currently working on using the kimono web scraper in conjunction with Firebase to obtain data stored as JSON. To convert the JSON to XML, I am utilizing a JavaScript library which allows me to create a variable from the JSON file (an example is shown ...
Having a Nuxt3 application, I encounter an issue where a blog article fetched from Firestore using a path variable ID is not populating the title and meta tags (<Title> and <Meta>) in time for SEO optimization. Despite setting SSR to true and p ...
I am currently working on a Firebase web project that involves Google cloud functions and a database. I now need to find a way to run a script on the backend in order to transfer data within the databases. Can anyone guide me on how to execute this scrip ...
Currently, I am in the process of enhancing an existing Firebase Auth project by transitioning to Identity Platform to take advantage of multi-tenancy features. During my testing phase on the local emulator, I encountered some challenges: Users are not a ...
I am a novice in the world of development. What is the best approach to tackle the dependency versioning issue? Are there guidelines on which versions can be compatible with specific node versions? Your advice on this matter would be greatly appreciated! ...
In my React application, I am utilizing the Firebase SDK. Whenever a user needs to reset their password, they will be directed to a specific page within my app. If the entered code is valid, the <PWResetConfirmForm /> component should be displayed. I ...
Every time I push to my GitHub repo, I encounter this error. The build works fine on my machine, but when using actions, I keep running into a memory issue. I've successfully used this on other repos before and it worked perfectly, so I'm stumped as to wh ...
Can a cookie store a token value? In my setup with js-cookie, Firebase auth/firestore, and Next.js, I am setting my cookie within the handleUser function like this: const handleUser = async (rawUser) => { if (rawUser) { const user = await fo ...
I have been learning how to use AngularFire2 by following this tutorial. Encountered the error: 'Type 'Observable<{}[]>' is not assignable to type 'AngularFireList'. Property 'query' is missing in type 'Observa ...
While working with Next.js, I encountered an issue when trying to upload an image to Firebase storage. Despite my efforts, I encountered just one error along the way. Initialization of Firebase Admin SDK // firebase.js import * as admin from "firebas ...
Encountering a Firebase error when running the function locally using emulator in CLI $ firebase emulators:start --only functions Initiating emulators: ["functions"] functions: Using node@8 from host. functions: Emulator started at http://localhost:50 ...
Currently, my team and I are working on a project using Firebase with Vue.js as the framework. We've come across a challenge regarding creating, updating, and deleting elements in a Firebase cloud document. For instance, within our 'people&apos ...
How can I efficiently sign out of an Angular application that uses Firebase Authentication and Firestore? Although I can successfully sign in with Google authentication, signing out poses some challenges. My ultimate goal is to ensure that when a user cli ...
Hi there, I am facing an issue with the discussion app where I am only able to render either the header or the post at a given time. I am struggling with how to render in thread.jsx. This app is built using React and Firebase. Can anyone suggest how to res ...
While setting up a new project with Firebase, I encountered an issue after running the firebase init functions command. The error message displayed is as follows: firebase : File C:\Users\fudge\AppData\Roaming\npm\firebase.ps ...
Utilizing Firebase and Xamarin Forms, I am in the process of deploying an app. My goal is to find a way to retrieve an object (or multiple objects) that meet specific criteria. For instance, if I have a collection of characters with various attributes such ...
I have two distinct collections stored within my Firestore database. The first collection is users, and it can be visualized as shown here: https://i.stack.imgur.com/AKlyM.png The second collection is posts, represented by the following structure: http ...
I am currently working on an update function that is designed to retrieve a specific document based on its unique document uid, which is connected to the authenticated user's uid. In another part of my code, I have a function that successfully fetches dat ...
Is there a method to maintain a reference of the same collection while altering the ordering using firestore? TLDR: I am looking to achieve similar functionality as demonstrated in: , but since my data is sourced from firestore, I am struggling to find th ...
In order to replicate this issue, a minimal repository can be found at: https://github.com/ljrahn/firebase-unknown-node-type The problem arises when the firebase initialization logic is separated into a distinct package and then imported. This leads to an ...
Exploring ways to enhance cold start times for my Firebase functions led me to discover an article that focused on maximizing performance and readability using TypeScript with the base usage of the http onRequest function. However, I was eager to implement ...
I'm struggling to grasp the concept of rendering data from Firestore in my project. I've searched extensively but haven't been able to find a solution that fits my requirements. Background Information In my Firestore database, I have collec ...
Currently seeking a solution to create a dynamic route that will display each document in a Firestore collection using Server-side Rendering. For instance, if there is a document named foo, it would be accessible at test.com/foo under the [doc] page compo ...
Every time I try to run firebase deploy, an error pops up while parsing my function triggers. It specifically points to this line of code: import * as functions from 'firebase-functions'; at the beginning of my file. This is a new problem for me ...
Here is a method that I am having trouble with: async signinUser(email: string, password: string) { return firebase.auth().signInWithEmailAndPassword(email, password) .then( response => { console.log(response); ...
My dad recently asked me to enhance our motor home by integrating an Arduino with Firebase to monitor the water and propane tanks. He's hoping to be able to check tank levels from his phone so he can see when they need refilling. I've successfully set up ...
Wishing you a fantastic day! I'm a beginner with NextJs and I'm encountering an issue when trying to map my Firebase documents. I want to display 5 cards on my website, but I'm having trouble limiting the posts displayed. Here is my referen ...
After successfully uploading images into my firebase storage, I encountered an issue when trying to retrieve the download URL and add it to my firestore database. When logging "URL", I get the desired link but faced difficulty using it. Initially, I attem ...
Being new to Firebase and lacking experience, I recently deployed a simple SSR Next.js app with Firebase Functions. However, I encountered an issue where everything except the HTML is blocked on the app. The browser console displayed the following errors: ...
Currently using my work computer to work on a side project where I am exploring new features of Firebase. However, I ran into an issue since I am unable to install modules globally on this corporate device. When trying to install firebase-cli with the reco ...
I currently have an app running on Heroku. This web application is quite simple, without any background jobs or a database. It consists of three endpoints - one to serve HTML content, another for handling POST requests to the backend, and a third endpoint ...
Trying to wrap my head around rxJs and experimenting with using the where query in Firestore collection. However, I've run into an issue where the output of this collection is dependent on retrieving the user ID from Firebase Auth. Here's what I have so fa ...
Having an issue with my Firebase function that triggers on a Stripe webhook via express. The function itself runs smoothly, but I keep encountering an error when trying to send an email (using Axios): Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after ...
Below is a Firebase cloud function I have created that can be accessed through a REST API. My aim is to save the user-submitted values from the front end via the 'Web service URL': 1.) The data should be stored in the Firebase-realtime database. 2.) I c ...
Currently working on a React Native application with 3 variants: development, staging, and production. I only have two Firebase projects, one for production and the other for development/staging purposes. I have an Express server that utilizes the Firebas ...
After successfully deploying my simple web app using Socket.io, Express and Node.js to Heroku via Git, I encountered difficulties trying to make it work on Firebase. The issue seemed to be with installing the NPM dependencies without using Webpack or Brows ...
I am facing an issue with my household app where, upon clicking the button to navigate to the addtodo page, the URL specific to the user's house is getting lost. This results in the todolist being stored as undefined on Firebase instead of under the c ...