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
626

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

Accepted Solutions (0)

Answers (2)

Answers (2)

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`.

florine0113
Advisor
Advisor
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'

florine0113
Advisor
Advisor
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.