-
Notifications
You must be signed in to change notification settings - Fork 950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase Functions failing to deploy: npm ERR! Cannot read properties of undefined (reading '@google-cloud/functions-framework') #7909
Comments
Also note that Firebase emulator is working fine, and executing these functions successfully (as expected). I am only seeing this error while deploying the functions. |
Couple more hints:
Now the good part: Once I added it to my dependencies:
... it's working! With the older, or latest version of |
The Firebase Functions Getting Started Guide does not mention anything about But perhaps, it should be a transitive dependency via the I am assuming this is a recent change (something in the server-side of Google Cloud Functions deployments) that makes it necessary to have this dependency? |
Hey @arnab, sorry for the delay, and thanks for the detailed report as well as for sharing your observations! I'm trying to reproduce this, but so far I haven't encountered any issues with deploying functions. To help us reproduce the error, any chance you could share a minimal reproducible example or code snippets of the function you're trying to deploy? In the meantime, I'll try asking our team to see if they may have an idea on what could be causing this or if there have been changes recently that could've affected this. |
In my case, I have resolved it (see this comment above). Essentially, I have to explicitly add If that's not the case for all functions, and the Getting Started instructions are correct, I think this can be resolved (looks like it's something unique to my setup)? |
Hi @arnab. Thanks for sharing an update and the workaround. For context - I've reached out to internal team members to see if they are aware of the issue. Will keep you posted. |
[REQUIRED] Environment info
firebase-tools: 13.24.1
Platform: MacOS (15.0.1)
[REQUIRED] Test case
I have had Firebase Functions (v1) running and deploying for a while. Today, I am seeing this error while deploying:
[REQUIRED] Steps to reproduce
I have a pretty large repository with 20+ functions (all v1) all running for over a year.
My Firebase-Functions dependencies:
I have also tried downgrading both these dependencies, as well as
firebase-tools
and keep seeing the same error.[REQUIRED] Expected behavior
Not fail to deploy.
[REQUIRED] Actual behavior
See the above details. Essentially, the main error is:
The text was updated successfully, but these errors were encountered: