Skip to Content
0
Nov 17 at 12:35 PM

Issue while deploying sap cap based mta (Cannot find module '@sap/cds-odata-v2-adapter-proxy'...)

340 Views Last edit Nov 17 at 12:56 PM 2 rev

We are trying to use latest version of "@sap/cds-odata-v2-adapter-proxy" : "^9.1.15" with "@sap/cds": "^6.3.1", in one of our sap CAP project and while trying to deploy the MTA we are getting the following error

"Cannot find module '@sap/cds-odata-v2-adapter-proxy'

image.png

And the output of the command cds version in terminal

@sap/cds: 6.3.1
@sap/cds-compiler: 3.4.2
@sap/cds-dk: 6.3.1
@sap/cds-foss: 4.0.0
@sap/cds-mtx: -- missing --
@sap/cds-odata-v2-adapter-proxy: 1.9.15
@sap/eslint-plugin-cds: 2.6.0
Node.js: v16.16.0
home: /home/user/projects/proj-hcl-forecastplan-sol/node_modules/@sap/cds
proj-hcl-forecastplan-sol: 1.0.0<br>

The current versions in mta.yml

"dependencies": {
    "@sap-cloud-sdk/core": "^1.54.2",
    "@sap/cds": "^6",
    "@sap/cds-odata-v2-adapter-proxy": "^1.9.15",
    "date-and-time": "^2.4.0",
    "express": "^4",
    "hdb": "^0.18.3",
    "mbt": "^1.2.18",
    "passport": "^0.6.0"
  },
  "devDependencies": {
    "3": "^2.1.0",
    "@sap/ux-specification": "^1.96.16",
    "sqlite": "^4.1.1",
    "sqlite3": "^5.1.2"
  },

Attachments

image.png (503.5 kB)