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