Skip to main content
Level 7
Mar 12, 2025 10:25 AM UTC
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 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
Mar 13, 2025 2:36 PM UTC

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

giuseppebaglio
Level 10
Mar 12, 2025 4:31 PM UTC

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
Mar 13, 2025 4:05 AM UTC

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
Mar 13, 2025 8:45 AM UTC

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
arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
Mar 13, 2025 2:36 PM UTC

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