SPA root page returning null | Community
Skip to main content
Level 6
May 30, 2022
Solved

SPA root page returning null

  • May 30, 2022
  • 2 replies
  • 1987 views

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.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sunil_kumar_

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. 

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

2 replies

sunil_kumar_
sunil_kumar_Accepted solution
Level 5
May 30, 2022

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. 

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

Nikhil-Kumar
Community Advisor
Community Advisor
May 31, 2022

@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.