Why does the publish environment not add jquery dependencies | Community
Skip to main content
vinnieyb
New Participant
Jun 9, 2023 1:34 AM UTC
Solved

Why does the publish environment not add jquery dependencies

 

Hi everyone,

  I encountered the following error when deploying to the release environment,

  I found that this $ is undefined is only a problem in the publish environment, because the publish environment does not load jQuery that comes with AEM.

  Does anyone have a solution, I really need it, and I look forward to your replies

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Jun 9, 2023 4:42 AM UTC

Hello @vinnieyb 

 

Can you please cross-check if jquery is configured as dependency for your base clientlib?

 

Aanchal Sikka

3 replies

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Jun 9, 2023 4:42 AM UTC

Hello @vinnieyb 

 

Can you please cross-check if jquery is configured as dependency for your base clientlib?

 

Translate
Aanchal Sikka
Umesh_Thakur
New Participant
Jun 9, 2023 2:40 AM UTC

you should check whether your clientlibs are set to allowedProxy to true.

see the below url

https://experienceleague.adobe.com/docs/experience-manager-65/developing/introduction/clientlibs.html?lang=en#locating-a-client-library-folder-and-using-the-proxy-client-libraries-servlet

Hope this helps

Umesh Thakur

Translate
vinnieyb
vinnieybAuthor
New Participant
Jun 9, 2023 6:08 AM UTC

jquer3.6.1 is installed in the dependency

Translate