The existing tutorial will result in error "CDS Compiler version 7 is not supported by CAP Java 4. Please use cds-dk 9 w/ cds-compiler 6" when running with the default CDS version..
Better to upgrade the CDS version.
Update pom.xml at the root directory
<jdk.version>21</jdk.version>
<cds.services.version>5.0.0</cds.services.version>
<spring.boot.version>4.1.0</spring.boot.version>
Update package.json at the root directory (remove the ^ cap key in the cds-dk version)
{
"name": "incident_management-cds",
"version": "1.0.0",
"devDependencies": {
"@sap/cds-dk": "9.9.3"
}
}
run the following command while in SRV subfolder
npm i -g @sap/cds-dk
cds upgrade
The rest of the tutorial will work fine
Tutorials: https://developers.sap.com/tutorials/build-cap-app.html
The existing tutorial will result in error "CDS Compiler version 7 is not supported by CAP Java 4. Please use cds-dk 9 w/ cds-compiler 6" when running with the default CDS version..
Better to upgrade the CDS version.
Update pom.xml at the root directory
Update package.json at the root directory (remove the ^ cap key in the cds-dk version)
run the following command while in SRV subfolder
The rest of the tutorial will work fine