Symptom
- SAP Business Application Studio (BAS) build Build MTA Project fails.
- BAS TERMINAL output:
* Executing task: mbt build -s '/home/user/projects/.../'; sleep 2;
[2025-12-05 04:09:27] INFO Cloud MTA Build Tool version 1.2.34
[2025-12-05 04:09:27] INFO generating the "Makefile_20251205040927.mta" file...
[2025-12-05 04:09:27] INFO done
[2025-12-05 04:09:27] INFO executing the "make -f Makefile_20251205040927.mta p=cf mtar= strict=true mode=" command...
[2025-12-05 04:09:27] INFO validating the MTA project
[2025-12-05 04:09:27] INFO validating the MTA project
[2025-12-05 04:09:27] INFO building the "" module...
[2025-12-05 04:09:27] INFO the "" module was not built because the "no-source" build parameter is set to "true"
[2025-12-05 04:09:27] INFO finished building the "" module
[2025-12-05 04:09:27] INFO building the "" module...
[2025-12-05 04:09:27] INFO executing the "npm install" command...
..
up to date, audited 1159 packages in 2s
11 packages are looking for funding
run `npm fund` for details
76 vulnerabilities (12 low, 21 moderate, 34 high, 9 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
[2025-12-05 04:09:29] INFO executing the "npm run build:cf" command...
> mram.hcm.compensation@0.0.1 build:cf
> ui5 build preload --clean-dest --config ui5-deploy.yaml --include-task=generateManifestBundle generateCachebusterInfo
INFO: Using local @ui5/cli installation
Process Failed With Error
Error Message:
Cannot find module './XXXX/XXXX'
Require stack:
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/@ui5/builder/lib/types/typeRepository.js
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/@ui5/builder/index.js
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/@ui5/project/lib/projectPreprocessor.js
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/@ui5/project/lib/normalizer.js
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/@ui5/project/index.js
- /home/user/projects/../../node_modules/@ui5/cli/lib/cli/commands/build.js
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/yargs/index.cjs
- /home/user/projects/../../node_modules/@ui5/cli/bin/ui5.js
- /home/user/projects/../node_modules/@ui5/cli/node_modules/import-local/index.js
For details, execute the same command again with an additional '--verbose' parameter
[2025-12-05 04:09:30] ERROR could not build the "" module: could not execute the "npm run build:cf" command: exit status 1
make: *** [Makefile_20251205040927.mta:37:] Error 1
[2025-12-05 04:09:30] ERROR could not build the MTA project: could not execute the "make -f Makefile_20251205040927.mta p=cf mtar= strict=true mode=" command: exit status 2
Error: could not build the MTA project: could not execute the "make -f Makefile_20251205040927.mta p=cf mtar= strict=true mode=" command: exit status 2
* Terminal will be reused by tasks, press any key to close it. - The error message stack indicates the folder within node_modules :
Error Message:
Cannot find module './XXXX/XXXX'
Require stack:
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/@ui5/builder/lib/types/typeRepository.js
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/@ui5/builder/index.js
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/@ui5/project/lib/projectPreprocessor.js
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/@ui5/project/lib/normalizer.js
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/@ui5/project/index.js
- /home/user/projects/../../node_modules/@ui5/cli/lib/cli/commands/build.js
- /home/user/projects/../../node_modules/@ui5/cli/node_modules/yargs/index.cjs
- /home/user/projects/../../node_modules/@ui5/cli/bin/ui5.js
- /home/user/projects/../node_modules/@ui5/cli/node_modules/import-local/index.js
Read more...
Environment
SAP Business Application Studio (BAS)
Product
SAP Business Application Studio all versions
Keywords
fiori, HTML5 module build, make command issue, node_modules folder, SAPUI5, error message, applicationType module, BAS environment, development space, troubleshooting, Cannot find module , KBA , CA-BAS-BLD-HTML5 , HTML5 module build , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview