All Questions
Tagged with firebase-tools firebase
1,527 questions
0
votes
1
answer
39
views
Imported modules becoming undefined in TypeScript Firebase Functions
I'm using Firebase Functions in TS. When executing npm run-script build and starting the emulator, here's what it throws:
TypeError: Cannot read properties of undefined (reading 'user')
at Object.&...
0
votes
1
answer
55
views
"Error: There was an error deploying functions" with no other info
I'm getting the error "There was an error deploying functions" when trying to deploy a newly created function. There is no other error info in the output:
i functions: updating Node.js 22 (...
-1
votes
1
answer
28
views
Getting data from the CLI, using a Firestore database [closed]
When working with a Firebase Realtime database, one can use a command like the following, in the terminal, in order to query for data in a collection:
firebase database:get /DB_Path --order-by ...
0
votes
1
answer
18
views
Firebase Emulator Suite Ignoring firebase.json port configuration, always defaults to 5002 for Hosting
I'm encountering a persistent issue with the Firebase Emulator Suite where the Hosting emulator consistently ignores the port configuration specified in my firebase.json file and always defaults to ...
0
votes
0
answers
20
views
Firebase database emulator opens new terminal instead of writing logs to file
Whenever I run firebase emulators:start it starts my emulators. The problem is that the Realtime Database emulator doesn't log the logs to the file database-debug.log. Instead it spawns a new terminal ...
1
vote
1
answer
43
views
Firebase Cloud Function - Can't find the storage bucket region
Trying to deploy my firebase cloud function and getting the following error:
Error: Can't find the storage bucket region
The function I'm trying to deploy looks like:
import {initializeApp} from &...
2
votes
1
answer
128
views
`firebase deploy` throws an error "TypeError Cannot read properties of null (reading 'length')"
When I run firebase deploy, I get the following error:
TypeError Cannot read properties of null (reading 'length')
What do I do to fix this?
3
votes
0
answers
69
views
Error with Firebase deploy, service account format issue
Error Message
[info] Functions deploy had errors with the following functions:
addmessage(us-central1)
[debug] [2025-03-27T22:03:14.260Z] Not printing URL for HTTPS function. Typically this means it ...
0
votes
0
answers
24
views
Error: Failed to load function definition from source: FirebaseError: Failed to parse build specification
On running "firebase emulators:start --only functions" this error shows
functions: Failed to load function definition from source: FirebaseError: Failed to parse build specification
const {...
0
votes
1
answer
52
views
ERR_NETWORK_IMPORT_DISALLOWED when I run `firebase emulators:start`
I am implementing a payment gateway. I am using Firebase Cloud Functions to run these APIs. I have a functions folder that has my functions and everything is set up for them. I am emulating the ...
0
votes
1
answer
47
views
run firebase emulator in spring boot test
I need to migrate some documents from one collection to another. This migration runs when the application starts up. It checks if the migration is finished, if it's not, it will run it otherwise it ...
1
vote
0
answers
18
views
How to deploy to Firebase in non-interactive mode with safe defaults?
When deploying firestore and functions code with firebase-tools, there are three questions that can come up (I don't remember them literally):
The following functions exist in your project but are ...
0
votes
2
answers
166
views
Firebase app hosting unable to retrieve secrets from cloud secret manager
I try to use cloud secret manager in combination with firebase app hosting, but app hosting can't fetch the keys from the secret manager when it's building.
My apphosting.yaml file looks like this:
...
0
votes
1
answer
217
views
Getting PathNotFoundException: Cannot open file, path = 'flutter_app\android\build.gradle` after flutter 3.29.0 using firebase-cli
After upgrading to Flutter 3.29.0, Android build scripts have migrated to .kts files. When trying to connect my project to Firebase using the flutterfire CLI, I'm encountering a PathNotFoundException:
...
0
votes
1
answer
63
views
Which permissions do I need to deploy a Firebase Function?
I'm implementing some changes to an old somebody's project and I need to deploy a firebase function since its backend it's all on Firebase.
The thing is that I've got the Cloud Functions Admin role, ...