Skip to content

Cannot build the app #2

Description

@saschabrockel

If I run npm run mta:package the output is the following:

> AutoRFQApp@1.0.0 mta:package
> mbt build --mtar AutoRFQApp_0.0.1.mtar --platform cf

[2025-08-07 01:36:31]  INFO Cloud MTA Build Tool version 1.2.34
[2025-08-07 01:36:31]  INFO generating the "Makefile_20250807013631.mta" file...
[2025-08-07 01:36:31]  INFO done
[2025-08-07 01:36:31]  INFO executing the "make -f Makefile_20250807013631.mta p=cf mtar=AutoRFQApp_0.0.1.mtar strict=true mode=" command...
[2025-08-07 01:36:32]  INFO validating the MTA project
[2025-08-07 01:36:32]  INFO running the "before-all" build...
[2025-08-07 01:36:32]  INFO executing the "npm install --production" command...
npm warn config production Use `--omit=dev` instead.
.npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'AutoRFQApp@1.0.0',
npm warn EBADENGINE   required: { node: '^18' },
npm warn EBADENGINE   current: { node: 'v22.18.0', npm: '10.9.3' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '@sap/approuter@12.0.3',
npm warn EBADENGINE   required: { node: '^14.0.0 || ^16.0.0' },
npm warn EBADENGINE   current: { node: 'v22.18.0', npm: '10.9.3' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '@sap/audit-logging@5.8.4',
npm warn EBADENGINE   required: { node: '^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0 || ^20.0.0' },
npm warn EBADENGINE   current: { node: 'v22.18.0', npm: '10.9.3' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '@sap/audit-logging@3.2.0',
npm warn EBADENGINE   required: { node: '^6.0.0 || ^8.0.0 || ^10.0.0 || ^12.0.0' },
npm warn EBADENGINE   current: { node: 'v22.18.0', npm: '10.9.3' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '@sap/e2e-trace@3.2.0',
npm warn EBADENGINE   required: {
npm warn EBADENGINE     node: '^8.0.0 || ^10.0.0 || ^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0'
npm warn EBADENGINE   },
npm warn EBADENGINE   current: { node: 'v22.18.0', npm: '10.9.3' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '@sap/logging@6.2.0',
npm warn EBADENGINE   required: { node: '^10.0.0 || ^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0' },
npm warn EBADENGINE   current: { node: 'v22.18.0', npm: '10.9.3' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '@sap/xsenv@3.4.0',
npm warn EBADENGINE   required: { node: '^10.0.0 || ^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0' },
npm warn EBADENGINE   current: { node: 'v22.18.0', npm: '10.9.3' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'opossum@6.4.0',
npm warn EBADENGINE   required: { node: '^18 || ^16 || ^14 || ^12' },
npm warn EBADENGINE   current: { node: 'v22.18.0', npm: '10.9.3' }
npm warn EBADENGINE }
...........
up to date, audited 1250 packages in 12s

93 packages are looking for funding
  run `npm fund` for details

49 vulnerabilities (9 low, 7 moderate, 29 high, 4 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
[2025-08-07 01:36:44]  INFO executing the "cds build --production" command...
building project with {
  versions: { cds: '9.2.0', compiler: '6.2.2', dk: '9.2.0' },
  target: 'gen',
  tasks: [
    { src: 'srv', for: 'nodejs', options: { model: [ 'db', 'srv', 'app', '@sap/cds/srv/outbox' ] } },
    { src: 'db', for: 'postgres', options: { model: [ 'db', 'srv', 'app', '@sap/cds/srv/outbox' ] } }
  ]
}
.done > wrote output to:
   gen\pg\db\csn.json
   gen\pg\package.json
   gen\srv\package-lock.json
   gen\srv\package.json
   gen\srv\srv\_i18n\i18n.json
   gen\srv\srv\csn.json
   gen\srv\srv\handlers\DatalakeHandler.js
   gen\srv\srv\handlers\EventHandler.js
   gen\srv\srv\odata\v4\SourcingService.xml
   gen\srv\srv\server.js
   gen\srv\srv\service.js
   gen\srv\srv\util\AdminHandler.js
   gen\srv\srv\util\AribaHandler.js
   gen\srv\srv\util\RFPQATemplates.js

build completed in 884 ms
[2025-08-07 01:36:45]  INFO executing the "bash pg-build.sh" command...
..............cp: cannot stat 'db-deployer/package.json': No such file or directory
                                                                                   [2025-08-07 01:37:00] ERROR the "before-all"" build failed: could not execute the "bash pg-build.sh" command: exit status 1
make: *** [Makefile_20250807013631.mta:28: pre_build] Error 1
[2025-08-07 01:37:00] ERROR could not build the MTA project: could not execute the "make -f Makefile_20250807013631.mta p=cf mtar=AutoRFQApp_0.0.1.mtar strict=true mode=" command: exit status 2
Error: could not build the MTA project: could not execute the "make -f Makefile_20250807013631.mta p=cf mtar=AutoRFQApp_0.0.1.mtar strict=true mode=" command: exit status 2

I had to update @cap-js/postgres, @sap/cds and @sap/cds-dk because otherwise I could not even install the packages. Is this the problem, and has it used db-deployer before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions