Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

arturl43391132
Level 4
Level 4

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:

arturl43391132_0-1587645443572.png

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

 

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

 

Thanks.

contexthub contexthub segments targeting update
1 Accepted Solution
shreyag72517995
Correct answer by
Employee
Employee

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.

View solution in original post

3 Replies
shreyag72517995
Correct answer by
Employee
Employee

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.

View solution in original post

arturl43391132
Level 4
Level 4

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

thomasm46556898
Level 1
Level 1

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?