April 26, 2020
Estimated Post Reading Time ~

Cannot read property 'extend' of undefined': ContextHub

While adding ContextHub to AEM site could see below errors

Uncaught TypeError: Cannot read property 'extend' of undefined'
Uncaught TypeError: window.injectContextHubUI is not a functionChange ContextHub entry in head section from

<sly data-sly-resource="${'contexthub' @ resourceType='granite/contexthub/components/contexthub'}"/>
to

!--/* Include Context Hub */-->
<sly data-sly-call="${clientlib.js @ categories='granite.utils'}"/>
<sly data-sly-resource="${'contexthub' @ resourceType='granite/contexthub/components/contexthub'}"/>



Click here to check how to setup ContextHub in AEM.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.