Contexthub console error - store "granite.emulators" | Community
Skip to main content
AEMLearner-1989
Level 4
February 14, 2024
Solved

Contexthub console error - store "granite.emulators"

  • February 14, 2024
  • 3 replies
  • 785 views

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)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Imran Khan

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

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

3 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 14, 2024
Imran Khan
Community Advisor
Imran KhanCommunity AdvisorAccepted solution
Community Advisor
February 14, 2024

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

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

kautuk_sahni
Community Manager
Community Manager
February 16, 2024

@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