SAP Knowledge Base Article - Preview

3363029 - SAP Commmerce Cloud hosting service Node 14/16 removal causing build failures

Symptom

Due to security vulnerabilities in Node.js v14 and v16 that cannot be mitigated, both Node.js v14 and v16 will no longer be available for Commerce Cloud JavaScript storefront builds resulting in failed builds.

  • For Node.js v14: As previously announced on August 11 2023, Node.js v14 will no longer be available starting September 13th, 2023
  • For Node.js v16: Starting October 31st, 2023, builds which specify v16 in the manifest will fail. (New as of Sept 2023)

After the removal date, builds which specify Node.js v14 or v16 in the manifest WILL FAIL. New builds in the Cloud Portal will report the following error:

INFO d.h.c.Builder [main] Task finished: readCoreCommerceManifest
INFO d.h.c.Builder [main] Started task: readJsAppsManifest
Exception in thread "main" de.hybris.ccv2.json.JsonSchemaValidationException: JSON is not valid! com.github.fge.jsonschema.core.report.ListProcessingReport: failure
--- BEGIN MESSAGES ---
error: instance value ("14") not found in enum (possible values: ["16", "18"])
    level: "error"
    schema: {"loadingURI":"#","pointer":"/properties/nodeVersion"}
    instance: {"pointer":"/nodeVersion"}
    domain: "validation"
    keyword: "enum"
    value: "14"
  enum: ["16", "18"]

This KBA describes how to unblock failing builds and includes further recommendations.

Note about what versions are no longer supported, as of September 1, 2023:
- Spartacus versions 4.x, 3.x, and earlier versions are open source and NOT SUPPORTED. Both are end-of-life and were not officially supported by SAP, though support was provided by product team on ad-hoc basis.
- Composable Storefront update releases are current for 6 months and after that are no longer supported. See this list. Customers must move to an update release that is supported. For example, 6.8 is supported until July 2024. We strongly recommend customers move to the latest 2211.x update release.
- Composable Storefrone 2211.x that are based on Angular 17 are only supported with Node.js v20.


Read more...

Environment

SAP Commerce Cloud in Public Cloud

SAP Commerce Cloud, Composable Storefront (aka project "Spartacus")

Product

SAP Commerce Cloud all versions ; SAP Commerce Cloud, composable storefront all versions

Keywords

Node.js,Node.js 14,Node.js 16,Node.js 18,Node.js 20,Spartacus,Composable Storefront,Commerce Cloud frontend , KBA , CEC-SPA , SAP Commerce Cloud Spartacus , CEC-SCC-CLA-BUI , Build Process , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.