Closed ifahrentholz closed 4 years ago
hi @ifahrentholz revu-global/e-fix/components/page/basepage
-> what is the sling:resourceSuperType here?
It doesn't appear that the Hierarchy Model JSON is being used (but the generic sling Model). You would need to have spa.project.core.ui.apps
and spa.project.core.core
installed which provides the HiearchyPageImpl
.
https://github.com/adobe/aem-guides-wknd-spa/blob/React/latest/all/pom.xml#L68 https://github.com/adobe/aem-guides-wknd-spa/blob/React/latest/ui.apps/pom.xml#L73
Thank you very much Daniel this tip was very helpful. The error is gone for now.
Thanks @godanny86 for quick help.
just for documentation:
Adding HiearchyPageImpl
alone did not solve the problem. only after we configured a structureDepth
> 0, which made the subpages to be exported as :children
, the exception was gone.
I wonder if this is really a must to export the child pages on the first request, because I did not see anything in this regard in the documentation.
Hi there, I've currently a problem with the marriage of AEM and React. When I try to navigate between pages I always get the error: "TypeError: Cannot read property 'lastIndexOf' of undefined".
The fetch for the model.json files working fine getting an 200 OK response and the model is filled with data. Here is the response of the fetched model:
And here is a screenshot of my browser with network and console:
Can anybody help ?