$CQ is not defined in <div class="target parbase"> after update AEM 6.3-6.5 | Community
Skip to main content
arturl43391132
Level 4
Apr 23, 2020 12:39 PM UTC
Solved

$CQ is not defined in <div class="target parbase"> after update AEM 6.3-6.5

Hello, Adobe Community

 

We're in the process of migration AEM from 6.3 to 6.5. We've made first steps and now we have the problem with loading pages which have target areas:

And the error is: Uncaught ReferenceError: $CQ is not defined.

 

Could you please suggest what's the problem can be?

 

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
shregupt1Accepted solution
Employee
Apr 24, 2020 9:31 AM UTC

This issue was reported to the AEM engineering team. 

The solution provided was to add cq.shared dependency on "/etc/clientlibs/foundation/main".

 

Check if this helps. Also I would suggest you to  recompile all JSPs, invalidate Cache and rebuild the clientlibs.

4 replies

Level 2
Sep 14, 2021 6:16 PM UTC

I tried the solution above, but can't find /etc/clientlibs/foundation.

Also, can you provide information on what property name/value has to be added for the dependency, and how to recompile the JSPs/Invalidate Cache/Rebuild clientlibs if possible?

Translate
RashidJorvee
Level 4
Oct 12, 2022 3:54 PM UTC

You could rebuild and invalidate the client libraries from this console  >> http://localhost:4502/libs/granite/ui/content/dumplibs.rebuild.html 

Translate
shregupt1Accepted solution
Employee
Apr 24, 2020 9:31 AM UTC

This issue was reported to the AEM engineering team. 

The solution provided was to add cq.shared dependency on "/etc/clientlibs/foundation/main".

 

Check if this helps. Also I would suggest you to  recompile all JSPs, invalidate Cache and rebuild the clientlibs.

Translate
arturl43391132
Level 4
Apr 24, 2020 12:05 PM UTC

Hi, @shregupt1
Thank you very much. We added this dependency to some other targeting clientlib, dropped cache and it helped.

Translate