2023 Dec 29 7:47 AM - edited 2023 Dec 29 11:50 AM
Hi all,
I am currently using the course Side-by-Side Extensions for SAP BTP. In the module "Adding an External Service" I now run into the following error within the cds watch within step J:
❗️ ERROR on server start: ❗️
Error: Cannot find module '@sap-cloud-sdk/resilience'
Require stack:
- /home/user/projects/risk-management/node_modules/@sap/cds/libx/_runtime/remote/utils/cloudSdkProvider.js
- /home/user/projects/risk-management/node_modules/@sap/cds/libx/_runtime/remote/utils/client.js
- /home/user/projects/risk-management/node_modules/@sap/cds/libx/_runtime/remote/Service.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at getCloudSdkResilience (/home/user/projects/risk-management/node_modules/@sap/cds/libx/_runtime/remote/utils/cloudSdkProvider.js:13:25)
at RemoteService.init (/home/user/projects/risk-management/node_modules/@sap/cds/libx/_runtime/remote/Service.js:219:18)
at RemoteService._init (/home/user/projects/risk-management/node_modules/@sap/cds/lib/srv/srv-handlers.js:32:16)
at connect.to (/home/user/projects/risk-management/node_modules/@sap/cds/lib/srv/cds-connect.js:46:59)
at async ApplicationService.<anonymous> (/home/user/projects/risk-management/srv/risk-service.js:44:19)
at async ApplicationService._init (/home/user/projects/risk-management/node_modules/@sap/cds/lib/srv/srv-handlers.js:31:7) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/user/projects/risk-management/node_modules/@sap/cds/libx/_runtime/remote/utils/cloudSdkProvider.js',
'/home/user/projects/risk-management/node_modules/@sap/cds/libx/_runtime/remote/utils/client.js',
'/home/user/projects/risk-management/node_modules/@sap/cds/libx/_runtime/remote/Service.js'
]
}
I did run the following command in a terminal to be make sure everything is up-to-date:
I also did check the progress of that module twice now and also consulted the TROUBLESHOOTING.MD. But I cannot get rid of this. Any advice where I went wrong?
Thanks.
Update: I completely deleted the whole SAP Business Application Studio and reran everything clean slate. The error remains. As soon as I have this connection to the Business Partner the error is back:
Hi @Dinter_S ,
try to run
npm install @sap-cloud-sdk/resilience
That worked for me.
Best regards,
Richard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.