Expand my Community achievements bar.

SOLVED

AEM and ReactJS GitHub Demo

Avatar

Level 3

I am trying to initialize the GitHub We.Retail ReactJS demo project to experiment with a working example of this integration. I am getting the following error and having issues resolving it:

org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/we__002d__retail__002d__journal/react/components/structure/page/customheaderlibs_html.java:

Line 28, column 1305 : Only a type can be imported. com.adobe.cq.sample.spa.journal.models.HierarchyPage resolves to a package

Line 65, column 2961 : HierarchyPage cannot be resolved to a type

Does anyone know how to resolve this issue?

Thanks in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 10

I am assuming you are on aem 6.4 with sp2

which is the required setup for this project to be used.

View solution in original post

4 Replies

Avatar

Level 10

If you are referring to the project https://github.com/adobe/aem-sample-we-retail-journal

I havent seen any issue ( aem 6.4 + sp2)

What I am wondering is your bundles are not in active state for we.retail journal, can you double check them?

Avatar

Level 3

Looks like there is a missing dependency:

day/cq60/product:cq-ui-wcm-editor-content:(1.0.138,)

Avatar

Correct answer by
Level 10

I am assuming you are on aem 6.4 with sp2

which is the required setup for this project to be used.

Avatar

Level 3

Thanks edubey​. That was the issue. I installed SP3 and it works on that as well.