Why do I get "AJS.MacroBrowser is undefined"?

Hi @Nishantupadhyay,

sorry, I assume I was wrong. I read “Editor” and thought that this may an issue with the removal of JS Global Variables (see Preparing for Confluence 8.0 | Confluence Data Center and Server 8.6 | Atlassian Documentation, " Removal of Editor javascript global variables"), But you are referring to “MacroBrowser”.

Also the original author has no issues with modules. So my reference probably won’t solve your problem.

In case you want to read more about AMD (Asynchronous Module Definition), this may be a good way to start: What is AMD Module key?. I also asked a couple of questions regarding AMD on Confluence Developer and got many answers as part of this thread: Preparing for Confluence 8.0 - EAP coming soon - #25 by rr1

Cheers,
Robert