Testing libs core component by modifying the html file | Community
Skip to main content
Level 7
March 12, 2025
Solved

Testing libs core component by modifying the html file

Hello Team,

 

I have a proxy component, which refers to core/cif/components/structure/breadcrumb/v1/breadcrumb (Note: This component doesnot have any html file)
This CIF breadcrumb refers to: core/wcm/components/breadcrumb/v2/breadcrumb
So, I went to the loction: /libs/core/wcm/components/breadcrumb/v2/breadcrumb/breadcrumb.html
Deleted this html file (Also, tried with deleting the html file content).
Still, my proxy breadcrumb component was displaying the data. Note: Deleted the v1/breadcrumb/breadcrumb.html as well.


Wanted to check, how come this is displayed?

 

Thanks

cc @arunpatidar @lukasz-m 

arunpatidar
arunpatidarAccepted solution
New Participant
March 13, 2025

The core component deploy scripts as precompiled bundled scripts. This allows developers to precompile their scripts at build-time.

https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/developing/archetype/precompiled-bundled-scripts 

 

 

This is happening because the HTL scripts are pre-compiled, stop the bundle aem-precompiled-scripts, which provides precompile scripts and you will see the changes immediately.
hope this help to understand why you can't see the changes.

 

 

Arun Patidar

4 replies

arunpatidar
arunpatidarAccepted solution
New Participant
March 13, 2025

The core component deploy scripts as precompiled bundled scripts. This allows developers to precompile their scripts at build-time.

https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/developing/archetype/precompiled-bundled-scripts 

 

 

This is happening because the HTL scripts are pre-compiled, stop the bundle aem-precompiled-scripts, which provides precompile scripts and you will see the changes immediately.
hope this help to understand why you can't see the changes.

 

 

Translate
Arun Patidar
giuseppebaglio
Level 10
March 12, 2025

I've just deleted /apps/core/wcm/components/breadcrumb/v2/breadcrumb/breadcrumb.html, and as expected, the component is not rendered anymore.

Besides v2 does not have sling:resourceSuperType, so I don't see a direct relationship with /apps/core/wcm/components/breadcrumb/v1/breadcrumb.

Are you sure the relationships you mentioned are based on properties sling:resourceSuperType?

 

Translate
Level 7
March 13, 2025

Hi @giuseppebaglio 

 

I am using AEM as a cloud service in local. I mean different jar, where core components are part of /libs/core, not /apps/core.

 

Thanks

Translate
giuseppebaglio
Level 10
March 13, 2025

In my local AEMasCS, I have the following chain: /apps/core/cif/components/structure/breadcrumb/v1/breadcrumb > /apps/core/wcm/components/breadcrumb/v2/breadcrumb > No more sling:resourceSuperType.

 

 

 

 

 

Can you explain how your components are placed under libs? What "different jar" means?

 
 
Translate