Expand my Community achievements bar.

Accordion Error

Avatar

Level 3

Hey guys! We are in the process of pushing our site up to live, but we are running into an error with the Accordion Core Component. In staging, I am able to use the accordions and test it, however, in publish, the accordions don't open and we are receiving a console error that reads:

 

"Uncaught ReferenceError: CQ is not defined."

 

Any ideas what could be causing this error?

3 Replies

Avatar

Community Advisor

HI @SocialTaylor 

 

Have you added 

cq.widgets

as the dependencies?

 

Thanks! 

Avatar

Level 3

@Asutosh_Jena_ So, I've tried adding that to the dependencies for clientlib-base and clientlib-site, but I'm getting more cq.widget errors within the console. The accordions are still not working atm. Is there something that I am missing within this, or was adding it to both clientlibs incorrect? 

When I looked at the file above, it was from where the Accordions was looking for the deeplink to open.

Avatar

Community Advisor

Hi @SocialTaylor ,

                             Can you please check the below url  and try the solution suggested their.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/uncaught-referenceerror-cq...

 

Regards,

Sanjay