Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Contexthub console error - store "granite.emulators"

Avatar

Level 5

Hi Team,

 

I am getting the following error on console.

 

AEM : 6.5.15

 

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


Error: 

store "granite.emulators" ( ƒ (b,a){this.config=g.extend(!0,{},k,a);a=this.getSupportedEmulators();g.extend(!0,this.config,{initialValues:{devices:a,currentDeviceId:a[0].id,
orientations:[{id:"landscape",title:"Landscape"},{id:"p… ) could not be initialized: TypeError: Cannot read properties of null (reading '1')
at contexthub:428:171
at Array.map (<anonymous>)
at contexthub:428:135
at Array.map (<anonymous>)
at Object.parseMediaRule (contexthub:427:443)
at e._getRules (contexthub:421:353)
at new e (contexthub:419:117)
at new e (contexthub:434:218)
at Object.<anonymous> (contexthub:480:361)
at Function.each (contexthub:52:146)

1 Accepted Solution

Avatar

Correct answer by
Level 10

Following below blog for sure resolve you issue as it is well known.

https://medium.com/@toimrank/aem-contexthub-7e06f700c51

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Following below blog for sure resolve you issue as it is well known.

https://medium.com/@toimrank/aem-contexthub-7e06f700c51

Avatar

Administrator

@AEMLearner-1989 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni