cancel
Showing results for 
Search instead for 
Did you mean: 

CAP HDI deployment error: cannot find module core-util-is

miltonc
Product and Topic Expert
Product and Topic Expert
4,315

Suddenly started getting an error during deployment (in the hdi deployer) about not finding module core-util-is. Deployment used to work fine before.

  • I installed the core-util-is in the package.json file, but I still run into the same issue
  • In mta.yaml file, I used to ignore the node_modules folder when creating the mtar file. I removed the section to ignore the node_modules folder. Still running into the same issue during deployment

Any ideas why I am suddenly running into this issue ? Like I mentioned, deployment used to work fine before...

View Entire Topic
Willem_Pardaens
Product and Topic Expert
Product and Topic Expert

The SAP development team for the HDI Deployer has been notified of the issue. We'll let you know once a fix is available.

0 Kudos

Hi willem.pardaens,

We are using hdi-deploy downgrade version, still showing the same error:



Please let us know, the resoultion to fix this.

Willem_Pardaens
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Asif,

That is not the correct approach to solve this. Please have a look at the package.json below from Mauricio, which is a new file in the db folder. Specifying this file referencing 4.8.0 makes sure the 'cds build' command doesn't generate its default file referencing 4.8.1

0 Kudos

Hi Willem,

We actually using the version of @sap-deploy:^4.5.3 only till yesterday, and we have had no issues.
As suggested, we tried the 4.8.0 version but still had the same issue.

Willem_Pardaens
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi, you should read my response again and make the correct changes..

ark_ade
Explorer
0 Kudos

Hi, my team tried your suggested workaround but the db deployer component is still not working

mayank_thakursap
Explorer
0 Kudos

Hi ,

I tried the suggested workaround, but it did not work. Any other approach for solving this issue ?

Regards:

Mayank Thakur

0 Kudos

Hi Willem,

The issue is resolved. Thanks for Mauricio Lauffer's code.

Willem_Pardaens
Product and Topic Expert
Product and Topic Expert
0 Kudos

Resolved: New version 4.8.2 of the @sap/hdi-deploy module has been released a moment ago (https://www.npmjs.com/package/@sap/hdi-deploy/v/4.8.2). It should be picked up automatically if you revert your project back to before implementing manual fixes.

nicoschoenteich
Developer Advocate
Developer Advocate

I believe this issue is back with @sap/hdi-deploy version 4.9.0. Can someone please also test this before we report?

mpah
Participant

I can confirm this issue with 4.9.0 as well. For now we will be using the old workaround with the package.json defined inside the db folder with the fixed version at 4.8.2 again.

egor_t
Explorer

It's back.

Looks new release is related to recent vulnerability https://me.sap.com/notes/3411067.

Binding to previous version works:

dependencies": {

"@sap/hdi-deploy": "4.8.2"

}

Willem_Pardaens
Product and Topic Expert
Product and Topic Expert
0 Kudos

Resolved: New version 4.9.1 of the @sap/hdi-deploy module has been released a moment ago (https://www.npmjs.com/package/@sap/hdi-deploy/v/4.9.1). It should be picked up automatically if you revert your project back to before implementing manual fixes.