cds build --productionresults in error
building project with {
versions: { cds: '9.8.3', compiler: '6.8.0', dk: '9.8.1' },
target: 'gen',
tasks: [
{ src: '.', for: 'typescript', options: { model: [ 'db', 'srv', 'app', 'app/*', '@sap/cds/srv/outbox', '.' ] } },
{ src: 'db', for: 'hana', options: { model: [ 'db', 'srv', 'app', 'app/*', '@sap/cds/srv/outbox' ] } },
{ src: 'srv', for: 'nodejs', options: { model: [ 'db', 'srv', 'app', 'app/*', '@sap/cds/srv/outbox' ] } }
]
}
done > wrote output to:
gen/db/package.json
gen/db/src/gen/.hdiconfig
gen/db/src/gen/.hdinamespace
gen/db/src/gen/cds.outbox.Messages.hdbtable
gen/srv/package-lock.json
gen/srv/package.json
gen/srv/srv/csn.json
Error: @cds-models/DummyService/index.ts(5,27): error TS1434: Unexpected keyword or identifier.
@cds-models/DummyService/index.ts(5,32): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
@cds-models/DummyService/index.ts(5,41): error TS1005: '(' expected.
@cds-models/DummyService/index.ts(5,55): error TS1005: '{' expected.
@cds-models/DummyService/index.ts(5,64): error TS1005: '(' expected.
@cds-models/DummyService/index.ts(6,1): error TS1128: Declaration or statement expected.
@cds-models/DummyService/index.ts(9,22): error TS1134: Variable declaration expected.
@cds-models/DummyService/index.ts(9,38): error TS1005: ';' expected.
@cds-models/DummyService/index.ts(13,3): error TS1005: '=>' expected.
@cds-models/DummyService/index.ts(13,6): error TS1005: ')' expected.
@cds-models/DummyService/index.ts(13,39): error TS1005: ';' expected.
@cds-models/DummyService/index.ts(13,40): error TS1128: Declaration or statement expected.
@cds-models/DummyService/index.ts(15,59): error TS1005: ';' expected.
@cds-models/DummyService/index.ts(15,118): error TS1005: ';' expected.
at Plugin.build (/Users/I028910/SAP/cap-js/cds-typer-issue/node_modules/@cap-js/cds-typer/cds-plugin.js:160:23)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async Promise.allSettled (index 0)
at async BuildTaskEngine._executePipeline (/Users/I028910/.nvm/versions/node/v24.13.1/lib/node_modules/@sap/cds-dk/lib/build/index.js:462:29)
at async BuildTaskEngine._executeBuildTasks (/Users/I028910/.nvm/versions/node/v24.13.1/lib/node_modules/@sap/cds-dk/lib/build/index.js:455:25)
at async BuildTaskEngine.processTasks (/Users/I028910/.nvm/versions/node/v24.13.1/lib/node_modules/@sap/cds-dk/lib/build/index.js:113:33)
at async build (/Users/I028910/.nvm/versions/node/v24.13.1/lib/node_modules/@sap/cds-dk/lib/build/index.js:40:12)
at async Object.build (/Users/I028910/.nvm/versions/node/v24.13.1/lib/node_modules/@sap/cds-dk/bin/build.js:170:16)
at async Object.exec (/Users/I028910/.nvm/versions/node/v24.13.1/lib/node_modules/@sap/cds-dk/bin/cds.js:96:16)