The category defined in the clientlib as a dependency / embedded does not exist for the category type(s). | 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.
Best answer by viveksachdeva

From what I think, it means that the category exists but it does not have the specified category type(JS/CSS/both). For example, in screenshot above, for "http://localhost:4502/crx/de/index.jsp#/etc/clientlibs/fd/fp/draftsandsubmissions", there will be a dependency "jquery" but as it is highlighted in yellow and type is CSS, that means category named "jquery" does not have a css in it(/libs/clientlibs/granite/jquery).

Similarly, "cq.dam.assetshare" does not have a JS in it, which justifies last row in your screenshot

4 replies

smacdonald2008
Level 10
July 26, 2017

This means that there is a problem with the dependency that a client lib uses. Typically a dependency has library files that that are required to make the libs in the given clientlib work.

For example. - assume you have an AEM clientlib named myCat with JQuery plug-in files. This clientlib will have a dependency to cq.jquery - where JQuery files are located. If you changed that dependency to another value that did not exist - ie - cq.nojquery - you would get this error.

Level 4
July 27, 2017

if depended clientlib does not exist, it will be shoen in Red.

I am asking about the dependencies shown in "yellow" , i.e. dependency does not exist for the category type(s).

When I checked these dependencies do exist in crx/de. I think this is for if we have added some unnecessary dependency.

viveksachdeva
Community Advisor
viveksachdevaCommunity AdvisorAccepted solution
Community Advisor
July 28, 2017

From what I think, it means that the category exists but it does not have the specified category type(JS/CSS/both). For example, in screenshot above, for "http://localhost:4502/crx/de/index.jsp#/etc/clientlibs/fd/fp/draftsandsubmissions", there will be a dependency "jquery" but as it is highlighted in yellow and type is CSS, that means category named "jquery" does not have a css in it(/libs/clientlibs/granite/jquery).

Similarly, "cq.dam.assetshare" does not have a JS in it, which justifies last row in your screenshot

Nirmal_Jose
Adobe Employee
Adobe Employee
July 28, 2017

Its because of both CSS and JS dependency is not resolved properly as mentioned by Vivek above. On the example,

http://localhost:4502/etc/clientlibs/fd/fp/draftsandsubmissions.css is valid where as

http://localhost:4502/etc/clientlibs/fd/fp/draftsandsubmissions.js fails. Hence the jquery dependency is not fulfilled.