Magento Commerce Enabled AEM 6.5.7 clientlibs not loading | Community
Skip to main content
anupammaiti
Level 2
May 11, 2021
Solved

Magento Commerce Enabled AEM 6.5.7 clientlibs not loading

  • May 11, 2021
  • 3 replies
  • 1925 views

AEM Archetype 27, Commerce enabled Integrated with Magento. Followed the below documentation  to configure

https://experienceleague.adobe.com/docs/experience-manager-65/commerce/storefront/getting-started.html?lang=en#storefront

AEM Details : AEM 6.5

Service Pack :6.5.7

Commerce Add-on : commerce-addon-aem-650-all

Facing below issue 

 

1. Clientlibs are not loading in AEM storefront.

 

2. Getting error in console :Resource at '/magento/graphql' not found: No resource found.

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 Prince_Shivhare

Hi @anupammaiti ,

 

I don't think there is a relation between clientlib and /graphql endpoint.

Setting up the CIF add-on project won't affect the clientlib.

 it should load properly. can you please confirm if you are getting this issue in the author or publisher environment?

can you try hitting http://localhost:4502/commerce.html and see if you are able to see the products.

if not then configuration in cloud service is not done properly.

 

when you are giving localhost:4502/magento/graphql then make sure you have proxied the magento endpoint to localhost:4502.

thanks,

Prince

3 replies

Vaibhavi_J
Level 7
May 12, 2021

Hi @anupammaiti , 

Seems like permission issue. 

Please have a check if permission (read ACL) is enabled for /magento/graphql and /etc folder folder.

Also please have a check on dispatcher filter is not blocking the request. 

 

https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/security.html?lang=en#permissions-in-aem

shelly-goel
Adobe Employee
Adobe Employee
May 12, 2021

Looks like local proxy is not setup

https://github.com/adobe/aem-cif-guides-venia

Prince_Shivhare
Community Advisor
Prince_ShivhareCommunity AdvisorAccepted solution
Community Advisor
May 12, 2021

Hi @anupammaiti ,

 

I don't think there is a relation between clientlib and /graphql endpoint.

Setting up the CIF add-on project won't affect the clientlib.

 it should load properly. can you please confirm if you are getting this issue in the author or publisher environment?

can you try hitting http://localhost:4502/commerce.html and see if you are able to see the products.

if not then configuration in cloud service is not done properly.

 

when you are giving localhost:4502/magento/graphql then make sure you have proxied the magento endpoint to localhost:4502.

thanks,

Prince

anupammaiti
Level 2
May 13, 2021
I am running AEM 6.5 and Magento on same machine(for development) so I don't need proxy server. The issue was with magneto running on https and certificate was creating issue. CSS issue is a different issue. Looks like Archtype 27 with AEM 6.5.7 and Commerce enabled does not come with the css or scss files are not properly generating as npm build is not happening properly. I tried copying css from Venia project and it worked.