sap-tutorials / Tutorials

Tutorials on sap.com
https://developers.sap.com/tutorial-navigator.html
Creative Commons Attribution 4.0 International
727 stars 774 forks source link

Deploy a CAP Business Service to SAP Business Technology Platform #23238

Closed FarozanFarman closed 11 months ago

FarozanFarman commented 1 year ago

Tutorials: https://developers.sap.com/tutorials/cap-service-deploy.html

At step 3: Deploy using cf deploy:

  1. In VS Code, in the root of your project, execute the following command to build the archive.: The below command: mbt build -t gen --mtar mta.tar

results with an error:

image

I feel this is due to the cds versions, hence sharing the version details: image

Solution: There must be one more command added in the before-all of the build parameters: build-parameters: before-all:

Please look into the issue and update accordingly.

Labels to be added: Scenario label: SCPTest-banode Sprint Label: SCPTest-2310A Landscape Label: trail2 Priority: High

Thanks & Regards, Farozan

renejeglinsky commented 12 months ago

Hi @FarozanFarman ,

I couldn't reproduce it. These are my versions: @cap-js/sqlite: 1.3.1 @sap/cds: 7.3.0 @sap/cds-compiler: 4.3.0 @sap/cds-dk (global): 7.3.0 @sap/cds-fiori: 1.1.0 @sap/cds-foss: 4.0.2 @sap/cds-mtxs: 1.12.0 @sap/eslint-plugin-cds: 2.6.3 Node.js: v18.16.0

It can hardly imagine that the difference in our Node version has an impact here. Could you retry and see if the error still persists on your end?

renejeglinsky commented 12 months ago

Maybe try npm install once again and then do the mbt build.

FarozanFarman commented 11 months ago

Hi @renejeglinsky ,

I am also not able to reproduce this anymore. My updated versions are:

image

I will close this ticket. Thank you.

Regards, Farozan