Unable to add dependency cq.jquery in clientlib | Community
Skip to main content
snehag07
Level 2
August 14, 2017
Solved

Unable to add dependency cq.jquery in clientlib

  • August 14, 2017
  • 7 replies
  • 4873 views

Hi,

I have created a clientlib under /etc/clientlibs/test. I am trying to add dependency cq.jquery which is already existing.

But, it gives me an error and don't download jquery library.

Can anyone help here?

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 kautuk_sahni

Please have a look at this old post:- Js files under clientlibs are not getting loaded

//

1. Try disabling the minify option which is present in the HTML configuration in the felix console.

2. It might be something wrong with one of js library which was included into the final clientlibs.js. Check error.log

3. Check the Js files by compressing the js file using YUI compressor available online. See if there is some error.

~kautuk

7 replies

Feike_Visser1
Adobe Employee
Adobe Employee
August 14, 2017

what error do you get?

snehag07
snehag07Author
Level 2
August 14, 2017

Hi,

PSB screenshot

Feike_Visser1
Adobe Employee
Adobe Employee
August 14, 2017

Right, looks like the minify-option is causing this error, can switch this off and try again?

snehag07
snehag07Author
Level 2
August 14, 2017

tried, still not working

Feike_Visser1
Adobe Employee
Adobe Employee
August 14, 2017

Can you expand a bit more, what errors you exactly get? Also look in the AEM error.log if you find something in there.

smacdonald2008
Level 10
August 14, 2017

I notice that you have 2 dependencies - can you try with just cq.jquery and see if you still get an issue.  I have personally never had an issue with cq.jquery.

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
August 16, 2017

Please have a look at this old post:- Js files under clientlibs are not getting loaded

//

1. Try disabling the minify option which is present in the HTML configuration in the felix console.

2. It might be something wrong with one of js library which was included into the final clientlibs.js. Check error.log

3. Check the Js files by compressing the js file using YUI compressor available online. See if there is some error.

~kautuk

Kautuk Sahni