Accordion Error | Community
Skip to main content
October 11, 2021

Accordion Error

  • October 11, 2021
  • 2 replies
  • 1434 views

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?

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

2 replies

Asutosh_Jena_
Community Advisor
Community Advisor
October 12, 2021

HI @socialtaylor 

 

Have you added 

cq.widgets

as the dependencies?

 

Thanks! 

October 12, 2021

@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.

Sanjay_Bangar
Community Advisor
Community Advisor
October 12, 2021

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-is-not-defined/m-p/269417

 

Regards,

Sanjay