Need help regarding issue: embeds not available for task com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
July 16, 2024

When you encounter warnings related to com.adobe.granite.clientlibs.compiler.impl.ClientLibCompiler and missing embeds during AEM builds, it generally points to issues in your client libraries (clientlibs) configuration. These warnings can occur due to misconfigurations, missing dependencies, or problems in the client library setup.

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="cq:ClientLibraryFolder" categories="[my-project.components]" dependencies="[my-project.dependencies]" embed="[my-project.embeds]" allowProxy="{Boolean}true"/>

 check embed clientlibs, if those exits or valid clientlibs?

Arun Patidar
bhansa
bhansaAuthor
July 16, 2024

Thanks @arunpatidar, Is it could be due to empty spaces in embeds ?

<?xml version="1.0" encoding="UTF-8"?>
    jcr:primaryType="cq:ClientLibraryFolder"
    allowProxy="{Boolean}true"
    categories="[flex.template-homepage]"
    cssProcessor="[default:none,min:none]"
    jsProcessor="[default:none,min:none]"
embed="[ flex.component-carousel-v2-js, flex.component-promos-v2, flex.component-promos-v2-promo-featured-opt5, flex.component-button, flex.component-subtitle-v2, flex.component-button-js]"/>
bhansa
bhansaAuthor
July 18, 2024

Hi @bhansa 
Yes, it may cause the issue, you can try in local to validate it?


This didn't work, still able to see warnings in build logs.
Is there a way to either disable the logs or any other things to check for this ?

kautuk_sahni
Community Manager
Community Manager
July 23, 2024

@bhansa Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
bhansa
bhansaAuthor
July 24, 2024

Hi @kautuk_sahni the suggestions are indeed helpful but not the solution to this particular issue.
I'm yet to discover a solution for this and if I find any I will mention it here.