How to fix "Cannot read properties of undefined (reading 'registerLayer')" in Authoring? | Community
Skip to main content
Level 2
November 20, 2024

How to fix "Cannot read properties of undefined (reading 'registerLayer')" in Authoring?

  • November 20, 2024
  • 4 replies
  • 5711 views
While authoring in 'Adobe Experience Manager 2024.9.17689.20240905T073330Z-240800' cloud, it's giving 'Uncaught TypeError: Cannot read properties of undefined (reading 'registerLayer')'.
The error is getting in touch-ui authoring js(Click attach images). How should I solve it?
 
 

4 replies

PRATHYUSHA_VP
Community Advisor
Community Advisor
November 20, 2024

Hi @rosudel 

 

Any custom script written for aem dialog authoring ?

 

Thanks

Tethich
Community Advisor
Community Advisor
November 20, 2024

Hi @rosudel 

I would look in the basecode for any custom clietlib that might extend core functionality by using one of the AEM's clientlib categories, like cq.authoring.editor.* or granite.ui.*. Maybe you have some clientlib that interferes with ootb clientlibs abdbreaks something.

kautuk_sahni
Community Manager
Community Manager
November 26, 2024

@rosudel Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
gkalyan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 1, 2024

@rosudel 

Are LayerManager and msm.Layer objects are correctly initialized before calling registerLayer