Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

The category defined in the clientlib as a dependency / embedded does not exist for the category type(s).

poojac35931336
Level 4
Level 4

Can anyone please explain the meaning of above line. Appears at cliaent lib validation console http://localhost:4502/libs/granite/ui/content/dumplibs.validate.html

Below is the scree shot

1265755_pastedImage_1.png

1 Accepted Solution
viveksachdeva
Correct answer by
Level 7
Level 7

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

View solution in original post

4 Replies
smacdonald2008
Level 10
Level 10

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.

poojac35931336
Level 4
Level 4

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
Correct answer by
Level 7
Level 7

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
Community Advisor
Community Advisor

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.