Skip to main content
Level 2
Nov 20, 2024 10:48 AM UTC

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

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
Nov 20, 2024 12:08 PM UTC

Hi @rosudel 

 

Any custom script written for aem dialog authoring ?

 

Thanks

Translate
Prathyusha - AEM Developer
Tethich
Community Advisor
Community Advisor
Nov 20, 2024 8:08 PM UTC

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.

Translate
kautuk_sahni
Level 9
Nov 26, 2024 9:35 AM UTC

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

Translate
Kautuk Sahni
gkalyan
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Dec 1, 2024 2:19 AM UTC

@rosudel 

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