1,878 questions
0
votes
2
answers
472
views
Firebase emulator does not show firestore collections/documents added from angular app
I have an angular app that is connecting to firebase with a local emulator set up.
The emulator for auth works perfectly, I can see users created in the demo app and I can login with those users in ...
0
votes
1
answer
436
views
Unable to detect the web framework in use, check firebase-debug.log for more info
I'm facing an error while deploying my Angular application to Firebase Hosting using the firebase deploy command. The specific error message I'm receiving is:
[2024-01-31T22:26:15.400Z] ---------------...
3
votes
1
answer
2k
views
How to dockerize Firebase emulator with firestore and functions
I am using Firebase for my React app.
Of course Firebase does not have official docker image, but I found this one spine3/firebase-emulator which was enough for auth and firestore.
I can run auth and ...
2
votes
0
answers
108
views
Firestore Emulator multiple requests for one operation
Can somebody please confirm that this behavior is normal for Firestore Emulator?
If not, could this be a bug?
Maybe my firestore.rules aren't set up correctly?
When executing setDoc:
const docRef = ...
1
vote
2
answers
543
views
Firebase Auth Emulator keeps suggesting real Google accounts
TL;DR
Firebase Auth Emulator keeps suggesting real Google accounts.
One in a hundred attempts result in an emulator dummy account popup.
DETAILED
firebase providers setup:
importProvidersFrom(
...
1
vote
0
answers
442
views
!! functions: Failed to load function definition from source: Error: spawn "E:\Firebase Function (Todour)\functions\venv\Scripts\activate.bat" ENOENT
I want to run an emulator for Firebase Function, but I get this error
I used this command:
firebase emulators:start --project test
in the terminal I received the following:
enter image description ...
0
votes
0
answers
355
views
Flutter and firebase zsh:command not found: flutterfire
I got zsh:command not found: flutterfire, so I did some steps to solve it.
firebase login
npm install -g firebase-tools
dart pub global activate flutterfire_cli
vim ~/.zshrc (add export PATH="$...
0
votes
1
answer
145
views
Can firebase functions .secret.local specify kebab case environment variable names?
Secret manager can specify kebab case secret name, but I meet the error
functions: Failed to read local secrets file /work/dist/.secret.local: Invalid dotenv file, error on lines: project-bucket-url=&...
0
votes
1
answer
67
views
Both of console.log and functions.logger(firebase-functions) don't show logs in Firebase pubsub(schedule) function
I'm new to Firebase and now I'm trying to make a schedule function.
So I tried this one to see if the schedule function works.
exports.testSchedule = functions.pubsub
.schedule('*/1 * * * *') // ...
2
votes
4
answers
2k
views
How to run firebase blocking function (beforeUserCreated) in emulator suite?
After searching for numerous hours all over the web and asking ChatGPT, I have found no solution.
I have a Firebase Project (Web App) and I am using Gen2 Javascript Node for Firebase Functions. I have ...
1
vote
0
answers
72
views
Pub Sub Emulator Not downloading with actions/cache@v3 using node version 20
I have the following github action using node 20
name: develop-pr
on:
pull_request:
branches:
- develop
env:
CI: true
FIREBASE_EMULATORS_PATH: $GITHUB_WORKSPACE/emulator-cache
jobs:
...
0
votes
1
answer
153
views
Selecting documents with the Firebase CLI
When using the firebase CLI with a Realtime Database
I can use a command like this one to read a collection:
% firebase database:get DB_Path
But I can't find a way to select only the documents I ...
2
votes
1
answer
126
views
AngularFirev16 "Auth instance has already been used to make a network call" upon hotreload using emulator
I successfully upgraded AngularFire to version 16 and now I want to use the emulator with modular mode. I tried setting it up like in the example provided in the official samples found here: https://...
0
votes
1
answer
312
views
Issues working with Firestore emulator via Docker
I am running the Firestore emulator as a Docker container and facing two issues.
Here's the code I'm using:
Environment.SetEnvironmentVariable("FIRESTORE_EMULATOR_HOST", "localhost:...
0
votes
0
answers
42
views
firebase web hosting but unexpected error (firebase init)
I don't know what is wrong.
unexpected error
Error: ENOTDIR: not a directory.
I checked debug.log.
Error: ENOTDIR: not a directory, scandir 'C:\Users\user\Desktop\수요일 특강\work1\index.html'
I ctrl+click ...
0
votes
1
answer
287
views
Firebase: local functions emulator throws a 401 Unauthenticated
I've set up the emulators in my project and all of them work fine, except for functions where I receive a 401 Unauthenticated errors.
Is there some other setting somewhere for functions I need to ...
1
vote
0
answers
25
views
Firebase function deployment- Function can't be found in local source code error
I'm trying to deploy my Firebase project's functions but I'm getting a message telling me that my function can't be found in my local source code but it's there, so now I'm stuck.
my IDE and terminal:
...
0
votes
1
answer
312
views
Firebase Hosting web frameworks w/ Angular, selecting environments
I am using the firebase hosting web frameworks experimental feature with an Angular ssr project. I've got everything set up correctly and everything seems to deploy fine, except I started getting a ...
5
votes
0
answers
383
views
Attach debugger to Firebase Python Functions
I'm using the emulator to run cloud functions with Python. I'd like to attach a debugger using VS Code. This is easy when using Node, I just need to pass the --inspect-functions flag in when starting ...
0
votes
1
answer
101
views
Angular Fire Storage does not use emulators
In my Ionic Angular Application i will be using firebase for storage and authentication.
I set up a very basic project and tried to get all the firebase emulators working.
After running all commands ...
0
votes
0
answers
1k
views
FlutterAppRequiredException:The current directory does not appear to be a Flutter application project
I am trying to install Flutterfire CLI on Firebase CLI, I followed the instructions from the Firebase website. The error is:
FlutterAppRequiredException: The current directory does not appear to be a ...
1
vote
1
answer
438
views
Firebase Emulator: Admin SDK not working for Firestore
I am running a FastAPI backend application that saves data on Firestore. I would like to test using a test database, and want to use the Firebase Emulator Suite. My code is as follows:
from google....
0
votes
0
answers
1k
views
Facing Issue while configuring Firebase to my application using flutterfire cli
I am unable to connect firebase to my flutter application using CLI.
i Found 0 Firebase projects.
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
...
0
votes
1
answer
477
views
Failed to fetch: copying .runtimeconfig.json to /workspace/.runtimeconfig.json: zip: not a valid zip file Firebase Functions
Recently when I tried to bump the Node Js version of my firebase functions, an error started to pop up while pushing the code to Firebase. It is the following error:
Build failed: failed to Fetch: ...
1
vote
1
answer
483
views
CircleCI Build Error - Firebase CLI and Node.js Compatibility
Hello Stack Overflow community,
I hope this message finds you well. I'm encountering an issue with my CircleCI build for my personal project, specifically related to the compatibility between Firebase ...
0
votes
1
answer
400
views
Are there guidelines for starting the emulators in a memory-constrained container?
I am trying to start the firebase emulator suite (mostly firestore) on my rather memory-constrained dev environment. It is a Steam deck running ubuntu in a container via distrobox. I apparently have ...
0
votes
2
answers
62
views
What is the right setup to develop Firebase Functions with Firestore?
I am developing an iOS app with Firebase. The development works well with remote Firestore cloud data.
Since I have to develop Firebase Functions, as advised in Firebase document, I started to use ...
4
votes
1
answer
923
views
How to test Firebase Auth Blocking functions V2 locally on the emulator?
On the Firebase Console there is an option in settings that allows you to choose which function to trigger (screenshot belows) for the 2 events beforeUserCreated & beforeUserSignedIn. Looking at ...
1
vote
0
answers
126
views
Custom event "firebase.extensions.storage-resize-images.v1.complete" not working in Firebase Emulator
This is an android app that sends image files to Firebase Storage. Once in Firebase Storage the images are copied to another bucket where the resize images extension is enabled and converts the copied ...
0
votes
0
answers
30
views
Command 'npm install -g firebase-tool' gets stuck during installation on MacOS Ventura
Trying to install firebase-tools using the command npm install -g firebase-tool but it's stuck here
idealTree:morgan: MOOD DlaceDep node_modules/firebase—tools on—[email protected] OK for: body—parser@1....
0
votes
1
answer
201
views
Quota limit when deploying Next.js to firebase with CLI
I am using the 'firebase deploy' command to deploy a Next.JS project to firebase.
When deploying functions, the command attempts to create a Cloud Run function to handle server side rendering.
I get ...
0
votes
0
answers
78
views
Firebase function deployed is not showing up in functions dashboard
I can not get my Firebase function to deploy.
Here is the function code:
const functions = require("firebase-functions");
const admin = require("firebase-admin");
admin....
0
votes
0
answers
62
views
How to connect a C# WinForms Application to Google Datastore Emulator running on a local Docker Instance
I have a requirement to connect a C# win forms application running inside of Visual Studio on my local machine, to an instance of Google Datastore Emulator running on a Docker container which is also ...
0
votes
0
answers
28
views
Why the installation of firebase tools not working: "npm install -g firebase-tools" , I have already installed node js and setup firebase console
Here it appears whenever I give command "npm install -g firebase-tools",
I have already installed node.js and set up firebase console
I have tried many ways to solve the problem, but I am ...
0
votes
3
answers
806
views
'firebase' is not recognized as an internal or external command
I tried to firebase log in my system. i set environment variable and restart my computer but not working !
Any one to help me
first i installed "npm install -g firebase-tools" then i ...
0
votes
1
answer
78
views
firebase init won't run after running npm install -g firebase-tools -f
I am following the steps in Firebase to setup functions. I ran npm install -g firebase-tools -f and didn't get any errors but when I try to run firebase init I get this error:
I am running Windows 10,...
6
votes
3
answers
2k
views
Firebase deploy error - Running command: npm --prefix "$RESOURCE_DIR" run lint results in /bin/sh: 0: Illegal option --
I've deployed without issue a thousand times, running lint each time, now all of a sudden I'm getting an Illegal option -- error and deploy fails.
firebase --version: 12.9.1 node -v v16.16.0 yarn --...
1
vote
1
answer
630
views
Firebase deploy errors : Command terminated with non-zero exit code 2
This is my first flutter project, I recently faced a problem using firebase deploy command and I want to deploy my flutter web project on Mac.
i deploying database, functions, hosting, extensions
...
2
votes
1
answer
947
views
firebase npm tools install issue
> npm install -g firebase-tools
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: this library is no longer ...
0
votes
1
answer
475
views
use onCall functions with `firebase functions:shell` as an authenticated user
Is there really no way to test firebase onCall functions as a logged in user via the shell? I get that you can use that google api curl command to quickly get a token as discussed here, but how do I ...
0
votes
0
answers
59
views
Local host 5000 "cannot GET / " firebase CLI
I am trying to run a tictactoe game using firebase. I have initialized my file and on the console it says everything is running, except when I open localhost:5000 it gives me error Cannot GET/. on ...
2
votes
1
answer
329
views
Can't run Firebase cli commands after npm install -g. Please verify that the package.json has a valid "main" entry. Module not found
I installed firebase-tools with
npm install -g firebase-tools
However when I do firebase init or other cli commands I get an error.
firebase
node:internal/modules/cjs/loader:444
throw err;
...
3
votes
2
answers
365
views
Is it possible to debug multiple codebases running in Firebase functions emulator?
I'm trying to debug some Firebase Functions running locally with the Firebase Emulator and VS Code.
I can do that with the following command:
firebase emulators:start --inspect-functions
"...
0
votes
1
answer
377
views
How can I use the firebase --verbosity flag
According to the release notes https://firebase.google.com/support/release-notes/cli there is a new --log-verbosity flag on the firebase cli that can be used to limit al the noise from the emulator. I ...
0
votes
1
answer
396
views
How to point GOOGLE_ACCOUNT_CREDENTIALS environment variable in a VueFire project?
I was trying to run a VueFire project. The docs mentioned that I should use a service account. So I downloaded one and put it in my project folder, added it to .gitignore and point an environment ...
0
votes
0
answers
298
views
Getting error deploying functions: "Could not detect language for functions"
locally, and did "firebase init", etc. And everything works fine, and I can deploy it locally fine with no problems.
To get it deploy on GitHub, I set up a job with the following:
npm ...
0
votes
1
answer
1k
views
Is it possible to use different `firestore.rules` for the emulator?
I'm trying to run an end-to-end testing of my application with the Firebase emulator running to provide proper data and backend context.
Because of my security rules, I cannot put data into the ...
2
votes
0
answers
261
views
Firebase Authentication Issue with Emulator
I am building a site with a custom domain that uses and is hosted by Firebase. I use the Google and Anonymous authentication providers (with signInWithRedirect). Up until adding the custom domain, ...
2
votes
1
answer
2k
views
Firebase web framework detection error on deploy, emulator start and default github deploy pipeline
When i try to deploy my angular web application with the firebase deploy command, start the firebase emulators with the firebase emulators:start command or when the default github deploy on merge ...
0
votes
2
answers
3k
views
Firebase Functions Failed to load function definition from source
I am working on an existing React / Firebase project and wanted to add emulators, ironically to save time. I have not been able to get the emulators to run locally.
I get a rather vague error:
⬢ ...