Error related to ecmascript 6 while building pipeline in cloud manager for AEM as cloud service | Community
Skip to main content
asn_india
Level 2
Jun 10, 2020 12:03 PM UTC
Solved

Error related to ecmascript 6 while building pipeline in cloud manager for AEM as cloud service

I am building and deploying a project on AEM cloud instance via cloud manager deploy pipeline for the first time.

and the build images step is failing with lots of errors like the one below related to libs components.

Jun 10, 2020 8:58:03 AM com.google.javascript.jscomp.LoggerErrorManager println
SEVERE: /libs/cq/ups/rte/plugin.js:574: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: const declaration.
const context = this.editorKernel.editContext;

Any body faced same issue or any pointers?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
nidhip010816
nidhip010816Accepted solution
Employee
Jun 11, 2020 7:17 PM UTC

Hello @asn_india 

 

The /libs/clientlibs/granite/coralui2 node has a jsProcessor property set to "min:gcc". This means that this property takes precedence over the configuration in the HTML Library Manager. And this somewhat explains this - "This language feature is only supported for ECMASCRIPT6 mode"

 

Although, It would be great if you log a ticket where a Support Engineer could work with you by looking into your Cloud environment.

 

Hope this helps!

 

Warm regards,

Nidz

5 replies

nidhip010816
nidhip010816Accepted solution
Employee
Jun 11, 2020 7:17 PM UTC

Hello @asn_india 

 

The /libs/clientlibs/granite/coralui2 node has a jsProcessor property set to "min:gcc". This means that this property takes precedence over the configuration in the HTML Library Manager. And this somewhat explains this - "This language feature is only supported for ECMASCRIPT6 mode"

 

Although, It would be great if you log a ticket where a Support Engineer could work with you by looking into your Cloud environment.

 

Hope this helps!

 

Warm regards,

Nidz

Translate
asn_india
asn_indiaAuthor
Level 2
Jun 12, 2020 8:49 AM UTC

Thank You Nidhi....That seems to be the issue.

I tried specifying options to make default as ECMASCRIPT6 at our project's clientlibs(/apps ones) and errors related to those clientlibs were gone in next deploy attempt.

For libs though I wont be able to do so....so trying to put up a osgiconfig for HTML Library Manager...lets see if that solves the problem with libs one's.

 

Translate
New Participant
Apr 4, 2022 3:03 AM UTC

Hi @asn_india  i am facing the same issue where pipeline is failing while building image and getting ecmascript6 error. How did you solved this issue?

Translate
Surabhi_Katiyar
Employee
Jun 11, 2020 12:45 PM UTC

Detailed logs need to be checked in order to resolve this case, open a case with Adobe Support for this issue.

Translate
Employee
Jun 10, 2020 1:20 PM UTC

Can you log a ticket and share the deployment URL?

 

We can check what's going on in the backend

Translate