cancel
Showing results for 
Search instead for 
Did you mean: 

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

miltonc
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

RyanK
Explorer
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.

db/package.json:

{

"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

node:internal/modules/cjs/loader:1080
throw err;
^

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

Require stack:

....

Any ideas/workarounds out there?

cguttikonda24
Participant

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.

Thanks

View Entire Topic
js2
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`.