Showing results for 
Search instead for 
Did you mean: 

Is there an issue with the db deployer again ? Cannot find module core-util-is

Product and Topic Expert
Product and Topic Expert

Running into an issue that I saw a few months back. At that time the version of the @sap/hdi-deploy version was 4.8.1 (or something)

Error message: Cannot find module core-util-is

Currently running into the same issue. Version of @sap/hdi-deploy is 4.9.0

0 Kudos

We also are experiencing the same issue on XSA as of today. Doesn't seem to matter what version we put in db/package.json file. 4.8.0 4.8.2 4.9.0. Appreciate if anyone has found a decent workaround.



"name": "deploy",

"dependencies": {

"@sap/hdi-deploy": "^4.9.0"


"scripts": {

"postinstall": "node .build.js",

"start": "node node_modules/@sap/hdi-deploy/deploy.js"



Attempting Build:

3:47:48 p.m. (DIBuild)
> start
> node node_modules/@sap/hdi-deploy/deploy.js

throw err;

Error: Cannot find module 'core-util-is'

Require stack:


Any ideas/workarounds out there?


Remove the caret ^ to the the version. make sure it is 4.8.2. instead of ^4.8.2 as the caret brings the minor and patch release every time u run cds build

0 Kudos

This solution works for me.


Accepted Solutions (0)

Answers (2)

Answers (2)

Product and Topic Expert
Product and Topic Expert

You can add the `@sap/hdi-deploy` module inside your db folder and pin it to version 4.8.2 which works. This way when `cds deploy` is run it will copy this package.json into the ./gen folder instead of generating a new one on the latest version of `@sap/hdi-deplpoy`.

0 Kudos

Can anybody give any advice on this issue?

I'm facing the same issue now, and my db deployment worked just fine yesterday...

And I already have package.json with "@sap/hdi-deploy" under ./db folder. The error is still there.

Error detail:
Invoking start command.

2023-12-14T02:31:52.689+0000 [APP/TASK/deploy/0] STDOUT > start

2023-12-14T02:31:52.689+0000 [APP/TASK/deploy/0] STDOUT > node node_modules/@sap/hdi-deploy/deploy.js

2023-12-14T02:31:52.758+0000 [APP/TASK/deploy/0] STDERR node:internal/modules/cjs/loader:1080

2023-12-14T02:31:52.758+0000 [APP/TASK/deploy/0] STDERR throw err;

2023-12-14T02:31:52.758+0000 [APP/TASK/deploy/0] STDERR ^

2023-12-14T02:31:52.758+0000 [APP/TASK/deploy/0] STDERR Error: Cannot find module 'core-util-is'

0 Kudos

Changing the version of "@sap/hdi-deploy" into "4.8.2" will work.

I guess the issue is because they just released 4.9.0 yesterday which is not stable.