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

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

  • April 23, 2020
  • 2 Antworten
  • 6680 Ansichten

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.

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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 Antworten

shregupt1Adobe EmployeeAntwort
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