How to Convert URL to String in JavaScript, How to Solve SyntaxError: Unexpected end of input. Existence of file requirejs-config.js under /pub/static/_requirejs/ is expected behavior. So, it cannot '$' the variable and throw the error. The cookie is used to store the user consent for the cookies in the category "Other. Same problem by reinstalling everything, but only in XAMPP . Author: Venkatesh - I love to learn and share the technical stuff. Connect and share knowledge within a single location that is structured and easy to search. Instead of having .js extension, your JavaScript file has .mjs extension. To add it to your project, you need to download the latest RequireJS release and put it in your scripts/ folder.Next, you need to call the script on your main HTML header as follows: All that is different between the development and production copy is that my java script files get compressed. };