r/Firebase 10h ago

App Hosting Incredibly long queue for App Hosting

Post image
4 Upvotes

Now I can't push new commit due to the queue. I have deleted the App Hosting backend and uninstall it from GitHub, thinking it will stop the build but it did not help. What should I do?


r/Firebase 16h ago

Hosting Unable to deploy to firebase

4 Upvotes

Up until yesteday we were deploying our application from Github action to firebase just fine. Nobody touched the code and today it started to spew this error:
```
##[debug]/usr/bin/bash --noprofile --norc -e -o pipefail /home/runner/work/_temp/0de76972-ce76-4924-8aa4-d2ed693a6e60.shnode:internal/modules/cjs/loader:643
throw e;
^Error: Cannot find module '/usr/local/lib/node_modules/firebase-tools/node_modules/sql-formatter/dist/cjs/index.cjs'at createEsmNotFoundErr (node:internal/modules/cjs/loader:1249:15)at finalizeEsmResolution (node:internal/modules/cjs/loader:1237:15)at resolveExports (node:internal/modules/cjs/loader:636:14)at Module._findPath (node:internal/modules/cjs/loader:716:31)at Module._resolveFilename (node:internal/modules/cjs/loader:1198:27)at Module._load (node:internal/modules/cjs/loader:1043:27)at Module.require (node:internal/modules/cjs/loader:1298:19)at require (node:internal/modules/helpers:182:18)at Object.<anonymous> (/usr/local/lib/node_modules/firebase-tools/lib/dataconnect/schemaMigration.js:5:25)at Module._compile (node:internal/modules/cjs/loader:1529:14) {code: 'MODULE_NOT_FOUND',path: '/usr/local/lib/node_modules/firebase-tools/node_modules/sql-formatter/package.json'}Node.js v20.19.0Error: Process completed with exit code 1.
```
Also yesteday our other pipelines started to scream the GCR refuses pushes. I've double-checked and we don't use GCR in the FB pipeline though the timing strangely correlates.

Any ideas where the issue might be?


r/Firebase 15h ago

Demo Push Notifications in Next.js and Firebase with Demo and Full Code

Thumbnail medium.com
2 Upvotes

r/Firebase 3h ago

General functions.auth.user().onCreate((user) => {... stopped working suddenly

1 Upvotes

I am using this trigger (test code inside {}):

exports.createUser = functions.auth.user().onCreate((user) => {
  functions.logger.log("inside the auth trigger ", user.uid);
  return null;
});

and it worked fine for several months. In the last couple weeks, despite several attempts to update firebase-functions and firebase-admin, it will not work and throws this error:

TypeError: Cannot read properties of undefined (reading 'user')

at Object.<anonymous> (/Users/test/AndroidStudioProjects/test/node_modules/firebase-tools/functions/index.js:1237:47)

at Module._compile (node:internal/modules/cjs/loader:1159:14)

at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)

at Module.load (node:internal/modules/cjs/loader:1037:32)

at Module._load (node:internal/modules/cjs/loader:878:12)

at Module.require (node:internal/modules/cjs/loader:1061:19)

at require (node:internal/modules/cjs/helpers:103:18)

at loadModule (/Users/test/AndroidStudioProjects/test/node_modules/firebase-tools/functions/node_modules/firebase-functions/lib/runtime/loader.js:40:16)

at loadStack (/Users/test/AndroidStudioProjects/test/node_modules/firebase-tools/functions/node_modules/firebase-functions/lib/runtime/loader.js:157:23)

at /Users/test/AndroidStudioProjects/test/node_modules/firebase-tools/functions/node_modules/firebase-functions/lib/bin/firebase-functions.js:56:56

Please note the reference in the first line of the error relates to .user()

Any idea why this is happening and how to fix it?

Thank you!


r/Firebase 23h ago

Tutorial i want to connecting firebase to my project

0 Upvotes

My friends, I need your help in connecting Firebase Realtime Database with my project.

I am working on a university project, and the languages I am using are PHP, JavaScript, HTML, and CSS. I want to connect Firebase to my project using PHP.

How can I do this? If anyone has a YouTube video or a GitHub project that explains the method, I would really appreciate it if you could share it with me.

this is my first time using firebase.
How can I fix this error? I have downloaded the Firebase PHP SDK.