ReferenceError: guidelib is not defined | Community
Skip to main content
Level 5
May 29, 2025

ReferenceError: guidelib is not defined

  • May 29, 2025
  • 2 replies
  • 817 views

I have done the AEM setup using the below version of quickstart and forms addon. After installation i have created a sample form got the "guidelib is not defined" error becoz of this i was not able to use a custom methods in edit rules. Please let me know do i need to install any sp or other packages. Thanks in advance.

 

2 replies

Sakshi5
Adobe Employee
Adobe Employee
June 2, 2025

@aravinds Can you check if you are not using any ES6 syntax in custom function.
Also can you try with
AEM SDK v2025.5.21005.20250522T173058Z-250400
and
AEM Forms add-on v2025.04.29.00-250400

aravindSAuthor
Level 5
June 2, 2025

Hi @sakshi5 ,

Thanks for your reply. I have tried with and without custom functions / js file , all time i got the same error.

Let me try with this

AEM SDK v2025.5.21005.20250522T173058Z-250400
and
AEM Forms add-on v2025.04.29.00-250400

Adobe Employee
June 3, 2025

Hi,

Are you creating core component based form or foundation form?

At which stage you see the console error logs? When you open the form in editor?

Can you try opening the form using "Preview as HTML" option without opening it in editor? Please share if the form renders successfully or not.

aravindSAuthor
Level 5
June 3, 2025

Hi @pankajpr ,

Thanks for your reply.

I'm facing very first after done the installation. Whenever i tried to open "edit rules" getting the above error. Even there is no js for that custom clientlibs. (Note: css is applying based on my custom clientlibs file).

Adobe Employee
June 9, 2025

Hi,

Please confirm the below.

  1. There is no console error when the form is open in the editor.
  2. The console error appears only when you click edit rule button for a component.

Can you please attach a full page screen shot with dev console also open? Have you tried with very basic form?