Skip to main content
Level 2
Jul 20, 2023 1:24 PM UTC
Solved

AEM SPA(React) not loading in publish instance

Hi,

 

 We're implementing AEM React SPA in our project. Page is loading fine in the author but not in the publisher. Page is empty and this is due to en.model.json not at all being fetched and failing with 404 status. cq:pagemodel_root_url attribute is populated with the right model json value in publish. Are we missing something here?  

 

Thanks,

Divya

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
mahi1729
mahi1729Accepted solution
Level 4
Aug 9, 2023 1:47 PM UTC

We do not have access to CRX on publisher. We are using AaaCS.


Do you have a dispatcher that's probably blocking model.json requests? Can you find if thats the case. And as a last resort compare infinity.json on en node in author and publisher.

12 replies

EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Jul 20, 2023 2:35 PM UTC

Do you see any browser console error? Can you post it if so?

Translate
Esteban Bustamante
Divya_13Author
Level 2
Jul 20, 2023 3:04 PM UTC

Yes, I do see console errors and it is regarding the json not being loaded.

 

Translate
EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Jul 20, 2023 6:04 PM UTC

What happens if you hit directly in the browser that URL? do you have enough rights?

Translate
Esteban Bustamante