Expand my Community achievements bar.

SOLVED

SPA root page returning null

Avatar

Level 8

Hi,

 

I created a wknd spa react project in 6.5.11 I tried adding Text component in the logs its throwing an error as 

*ERROR* [[0:0:0:0:0:0:0:1] [1653904234206] GET /conf/site-react/settings/wcm/templates/spa-page-template/structure.html HTTP/1.1] com.adobe.aem.spa.project.core.internal.impl.utils.HierarchyUtils SPA root page not found, returning null
Can anyone help me,
 
Thanks,
Vani.
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Vani1012 ,
Have you defined, you root page template as root. In policies, you will find a check box. See attached. Check this only for root page template. 
Root_Template.jpg

Check this, If this can help - https://youtu.be/cWEfSNrgvRE

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @Vani1012 ,
Have you defined, you root page template as root. In policies, you will find a check box. See attached. Check this only for root page template. 
Root_Template.jpg

Check this, If this can help - https://youtu.be/cWEfSNrgvRE

Avatar

Community Advisor

@Vani1012  - In AEM SPA Model, the root page of the site hierarchy should be created out of Root Page Template and subsequent child pages should be created out of content pages or any other template. So all the data which is in form .model.json loads as part of the parent model.json.

For example: You have /content/us/en/homepage.html, then the en page should be made out of root page template so that when you load homepage.html then en.model.json gets loaded which have the data of all the child pages and then you navigate seamlessly from one page to another without page reload.