privacy statement. Write your comment heredocument.getElementById("comment").setAttribute( "id", "a2de55cea1c5b589936cc329fca4d9a6" );document.getElementById("jb3c99a1c3").setAttribute( "id", "comment" ); The TechRim - Solution to Your every problem. Yeah, I'm using AEM 6.5.3 I tried to add a colorpicker plugin for RTE please find the reference here. The fix require is not defined on server-side. This guide will assist you in resolving the issue. Any doubts in the error or its solution? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. The following is the error that was recorded on the console: If this occurs to you, the first thing that you should do is inspect the package.json file. If you are using any script file and getting "Uncaught ReferenceError: x is not defined " which means 'x' is either a variable or a method which you are trying to use before declaring it using var keyword. Using Ubuntu LAMP all it's ok ! However, require() is not required because programs naturally load all the import { greetings } from "./helper.js"; Hello, Transporting School Children / Bigger Cargo Bikes or Trailers. The example above tries to load the source main.js that's why the error is thrown. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA.