We are trying to set up Context Hub in 6.5 and getting an error "Uncaught TypeError: ContextHub.console is not a function". Tried resolving using dependencies and changing the sling resourcetype from /libs/granite.. to granite path but its not working.
Can someone please help on the issue.
My vanilla 6.5 install showed me that ContextHub.console is not a function -- it is an object:
I used Developer Tool to call 'ContextHub' to review the object and what is present.
It looks like Adobe used to have documentation on these use cases . However, I can't find the 6.5 version of this document.
I am working on a similar issue and noticed this issue was caused by the syntax error at line 31. It should be :
ContextHub.console.log(ContextHub.Shared.timestamp(), '[loading] cq.contexthub - store.clientcontext-backedstore.js (clientcontext connector)');
There were extra quotes around the console."log" which was causing the issue. Try checking if that is the case here.
In below files also instead of using "ContextHub.console.log()" they committed ContextHub.console("log","") which causing "ContextHub.console is not a function" error.
can you please fix them