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

Unable to add dependency cq.jquery in clientlib

  • August 14, 2017
  • 7 replies
  • 4867 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

kautuk_sahni
kautuk_sahniAccepted solution
Employee
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
smacdonald2008
New Participant
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.

Feike_Visser1
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.

snehag07
snehag07Author
New Participant
August 14, 2017

tried, still not working

Feike_Visser1
Employee
August 14, 2017

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

snehag07
snehag07Author
New Participant
August 14, 2017

Hi,

PSB screenshot

Feike_Visser1
Employee
August 14, 2017

what error do you get?