SPA does not work on publish instances | Community
Skip to main content
siddupatil
Level 2
February 22, 2021
Solved

SPA does not work on publish instances

  • February 22, 2021
  • 1 reply
  • 838 views

We are using Angular AEM SPA Pages in our project. AEM SPA pages are working fine in author/preview and view as publish mode. But it is not working in publish instance. I can see json being fetched correctly. On debugging I noticed that jquery clienlib is not loading in publish instance for SPA pages.Also same code base/clientlib is working fine in author instance.

 

SCREENSHOT - Publish page console error 

 

Any help will be appreciated. Thanks.

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 Kiran_Vedantam

Hi @siddupatil,

 

The error clearly says there is some issue in JQuery dependency as you have mentioned. Can you check if the client-libs are loading properly in the publisher? To check it, view the page source and search for the below text which can confirm if the client-libs are loading fine.

<script type="text/javascript" src="...jQuery></script>

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

1 reply

Kiran_Vedantam
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
February 22, 2021

Hi @siddupatil,

 

The error clearly says there is some issue in JQuery dependency as you have mentioned. Can you check if the client-libs are loading properly in the publisher? To check it, view the page source and search for the below text which can confirm if the client-libs are loading fine.

<script type="text/javascript" src="...jQuery></script>

 

Hope this helps.

 

Thanks,

Kiran Vedantam.