-
Notifications
You must be signed in to change notification settings - Fork 211
Disabled support for node 22 in first-generation functions. An error occurs when deploying functions. #1653
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
is there a workaround to change the runtime of a GCF Gen1 function to be node 20, while keeping the default for the project as node 22? or is the node version all or nothing change with the "engines" field here is Firebase's documentation calling out that they specifically support both versions:
seemingly you CAN'T support both versions side-by-side if you choose to use Node 22, evidenced by this issue |
For those stuck on this, specify
You can find the relevant docs here. For the Firebase team, it would be nice if the Gen1/2 Node versions moved in lockstep. Even better if Gen1 functions like the auth ones were just offered as Gen2 functions. |
@siarheidudko I had this same problem back in December. On a whim, I tried to deploy a v1 function with nodejs22 today, and it worked: I'd love verification from the Firebase team that this won't change again. This still doesn't indicate v1 support. |
@kevin-induro my Where did you specify your version of node for it to deploy successfully? |
@davie-robertson The issue here is with V1 functions, so you'd only have an issue with the That said, I've continued to not see an issue despite the referenced documentation still not saying that V1 supports 22. To answer your question, The only change I've made is to update the engine in the |
Thanks @kevin-induro , I am aware for the V1 auth support and the docs stating node 22 isn't supported, but my functions are not deploying as yours are - I can only guess it's a region issue.
|
the current behaviour also contradicts this https://cloud.google.com/functions/docs/release-notes |
and here's the real PITA, my function that won't deploy because it's using node 22, was previoulsy deployed using node 22:
|
We had an even more surprising behavior - deploys have been silently failing for us -
Even more bizzarre: So the runtime somehow updated, but the code is not updating. |
Related issues
[REQUIRED] Version info
node:
22.9.0
firebase-functions:
6.1.2
firebase-tools:
13.29.1
firebase-admin:
13.0.1
[REQUIRED] Test case
Node v22 support for 1st generation functions has disappeared.
[REQUIRED] Steps to reproduce
package.json
:firebase deploy -m "message" --only functions --force
[REQUIRED] Expected behavior
The functions should be deployed in the same way as it happened from August to November 2024. I have updated the engine from v20 to v22 in August 2024

[REQUIRED] Actual behavior
Were you able to successfully deploy your functions?
No, this requires rolling back the platform to node v20.
The text was updated successfully, but these errors were encountered: