Error: Maven Project Build Failed in ui.frontend for AEM SDK Cloud
- August 2, 2025
- 3 replies
- 810 views

Hi Adobe Community,
I'm encountering an issue while building my AEM project using the AEM SDK (cloud version). I followed all the steps as per the documentation, but the build keeps failing at the ui.frontend module.
The error log shows:
It seems to be related to ES Modules not being compatible with require() in some part of the ui.frontend build, specifically during the execution of npm run prod.
Here’s what I’ve tried so far:
Running the build again using mvn -PautoInstallSinglePackage clean install
Updating node and npm versions
Removing node_modules and reinstalling
Ensuring compatibility with the AEM SDK version
Despite all this, the error persists. The rest of the modules build successfully; only the ui.frontend build fails.
Can anyone please help me understand what I might be missing or how to resolve