Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Storage error in Firebase Cloud Function

I use const bucket = admin.storage().bucket(); in the cloud function, and at the very top, I have:

const functions = require('firebase-functions')
const admin = require("firebase-admin");
admin.initializeApp();

When I try to deploy, it gives me an error:

i functions: Loaded environment variables from. Error: Missing bucket name. If you are unit testing, please provide a bucket name through functions.storage.bucket(bucketName), or set process.env.FIREBASE_CONFIG.`

This only started happening after I updated, I believe. Thank you for your help.

like image 462
Rohin12 Avatar asked Jul 21 '26 14:07

Rohin12


1 Answers

Google released new firebase-tools with a bug, just fixed the bug at v9.16.3 https://github.com/firebase/firebase-tools/releases/tag/v9.16.3

Release note

like image 110
laeyoung Avatar answered Jul 24 '26 06:07

laeyoung



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!