Skip to content

Fix incompatible JS with ECMAScript_2020#11

Open
pablomoreno61 wants to merge 1 commit intoankumalh:mainfrom
pablomoreno61:fix-orderField-js-error
Open

Fix incompatible JS with ECMAScript_2020#11
pablomoreno61 wants to merge 1 commit intoankumalh:mainfrom
pablomoreno61:fix-orderField-js-error

Conversation

@pablomoreno61
Copy link
Copy Markdown
Contributor

@pablomoreno61 pablomoreno61 commented Nov 20, 2025

Fix error:
`
2025/11/20 13:49:36.187] [SEVERE] com.adobe.granite.clientlibs.compiler.gcc.impl.GCCLogErrorManager - apps/commerce/ui/components/productdata/clientlibs.min.js:28:16: ERROR - [JSC_LANGUAGE_FEATURE] This language feature is only supported for ECMASCRIPT_2020 mode or better: Optional chaining.
if (orderField?.classList.contains("commerce-product-order")) {
^

[2025/11/20 13:49:36.187] [WARNING] com.adobe.granite.clientlibs.compiler.gcc.impl.GCCLogErrorManager - 1 error(s), 0 warning(s)
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant