page.js:387 Uncaught ReferenceError: _ is not defined | Community
Skip to main content
akhilraj
Level 5
Mar 21, 2022 1:40 PM UTC
Solved

page.js:387 Uncaught ReferenceError: _ is not defined

Hi,

We have migrated AEM Version from 6.3 to 6.5 SP10.

It was fine in DEV environment.

But When we deployed to Higher environment, we are getting below error in author whenever we will open page in edit mode.

The same error is coming in all the pages including we retail pages as well.

Path: /libs/cq/gui/components/authoring/editors/clientlibs/sites/page

 

page.js:387 Uncaught ReferenceError: _ is not defined
at page.js:387:339

Can someone please help. It is environment specific,.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
JeevanRaj
JeevanRajAccepted solution
New Participant
Mar 21, 2022 2:56 PM UTC

Hi @akhilraj 

 

I have 6.5.10 in my machine it is working perfectly fine for me.

  • By any chance are you overwriting anything under /libs?
  • Can you check again in a fresh instance?

Thanks

4 replies

DEBAL_DAS
New Participant
Mar 21, 2022 3:13 PM UTC

Tried to replicate with minification but didn't get this issue with my local AEM 6.5.10(we.retail).

No error message, with and without minification.

 

Translate
JeevanRaj
JeevanRajAccepted solution
New Participant
Mar 21, 2022 2:56 PM UTC

Hi @akhilraj 

 

I have 6.5.10 in my machine it is working perfectly fine for me.

  • By any chance are you overwriting anything under /libs?
  • Can you check again in a fresh instance?

Thanks

Translate
akhilraj
akhilrajAuthor
Level 5
Apr 11, 2022 3:24 PM UTC

Thanks Jeevan.

Issue was with upgrade only, we tried in fresh instance and it is working fine.

 

Translate
Nitin_laad
New Participant
Mar 21, 2022 2:52 PM UTC

@akhilraj it looks your code is not able to resolve the dependency on _.extent(...), check the below thread on the same kind of issue if it helps

https://stackoverflow.com/questions/13556010/referenceerror-is-not-defined

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/uncaught-referenceerror-is-not-defined/td-p/401692

Translate