Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

SPA does not work on publish instances

siddupatil
Level 2
Level 2

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 

siddupatil_0-1613975391978.png

 

Any help will be appreciated. Thanks.

1 Accepted Solution
KiranVedantam1992
Correct answer by
Community Advisor
Community Advisor

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.

View solution in original post

1 Reply
KiranVedantam1992
Correct answer by
Community Advisor
Community Advisor

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.

View solution in original post