-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Extension Fails to Install: Node.js 18 Runtime Decommissioned
Description
The extension fails to install because it's configured to use Node.js 18, which has been decommissioned by Google Cloud Platform and is no longer allowed for Cloud Functions deployments.
Error Message
RESOURCE_ERROR at /deployments/firebase-ext-auth-activity-feeds/resources/getStreamUserToken:
{"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Failed to create 1st Gen function projects/grdnhelper/locations/us-central1/functions/ext-auth-activity-feeds-getStreamUserToken: runtime: Runtime validation errors: [error_code: DEPLOYS_NOT_ALLOWED\nmessage: "Runtime nodejs18 is decommissioned and no longer allowed. Please use the latest Node.js runtime for Cloud Functions."\n]","status":"INVALID_ARGUMENT","statusMessage":"Bad Request"}}
Similar errors occur for:
- ext-auth-activity-feeds-createStreamUser
- ext-auth-activity-feeds-deleteStreamUser
Steps to Reproduce
- Attempt to install the extension: firebase ext:install firebase/auth-activity-feeds
- Extension deployment fails with the above error
Environment
- Extension Version: stream/[email protected]
- Project ID: grdnhelper
- Region: us-central1
- Cloud Functions Generation: 1st Gen
Expected Behavior
The extension should install successfully using a supported Node.js runtime (Node.js 20 or 22).
Actual Behavior
Installation fails because the extension is configured to use the decommissioned Node.js 18 runtime.
Suggested Fix
Update the extension's extension.yaml configuration to use Node.js 20 or Node.js 22:
yaml
resources:
-
name: getStreamUserToken
type: firebaseextensions.v1beta.function
properties:
runtime: nodejs20 # or nodejs22 -
name: createStreamUser
type: firebaseextensions.v1beta.function
properties:
runtime: nodejs20 # or nodejs22 -
name: deleteStreamUser
type: firebaseextensions.v1beta.function
properties:
runtime: nodejs20 # or nodejs22
Additional Context
- Node.js 18 reached end-of-life and Google Cloud Functions no longer supports it as of 2024
- Supported runtimes are currently Node.js 20 and Node.js 22
- This affects all users attempting to install or update this extension
Workaround
None available - the extension cannot be installed until it's updated to use a supported runtime.
Would appreciate a fix for this as soon as possible, as this blocks installation of the extension entirely.