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

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

  • April 23, 2020
  • 2 replies
  • 6675 views

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.
Best answer by shregupt1

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.

2 replies

shregupt1Adobe EmployeeAccepted solution
Adobe Employee
April 24, 2020

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.

arturl43391132
Level 4
April 24, 2020

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

Level 2
September 14, 2021

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?

RashidJorvee
Level 4
October 12, 2022

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