You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node v22 support for 1st generation functions has disappeared.
[REQUIRED] Steps to reproduce
Specify engines (node 22) in package.json:
"engines": {
"node": "22"
},
Use the 1st and 2nd generation functions. (Some functions cannot be migrated to the 2nd generation at the moment, for example authentication triggers.)
Just run command: 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
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:
Note: Cloud Functions for Firebase (2nd gen) does not provide support for the events and triggers described in this guide. Because 1st gen and 2nd gen functions can coexist side-by-side in the same source file, you can still develop and deploy this functionality together with 2nd gen functions.
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.
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: