on 2023 Oct 11 4:32 PM
Suddenly started getting an error during deployment (in the hdi deployer) about not finding module core-util-is. Deployment used to work fine before.
Any ideas why I am suddenly running into this issue ? Like I mentioned, deployment used to work fine before...
The SAP development team for the HDI Deployer has been notified of the issue. We'll let you know once a fix is available.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe this issue is back with @sap/hdi-deploy version 4.9.0. Can someone please also test this before we report?
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.
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"
}
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.
Hi All,
I am facing same error with @sap-deploy:^4.8.0. Any solution?
Thanks,
Rajyalakshmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make sure you're really installing it, not just manually changing the version in the package.json file. Installing will ensure both package.json and package-lock.json are updated. Do NOT manually change version values.
npm i @sap/hdi-deploy@4.8.0
or the latest version with the fix...
npm i @sap/hdi-deploy@4.8.2
Hi All ,
Did anyone find the solution to this issue? I am also facing the same error.
Regards:
Mayank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello mayank.thakursap
Try referring to this comment https://answers.sap.com/comments/13985324/view.html
It helped me resolve the deployment issue, hope it helps you as well!
Best Regards
Harsha
Meanwhile, you can downgrade to v.4.8.0 which is working fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mauricio,
We started having this issue today. We were operating with only a package.json in our root directory to keep everything as clean as we possible.
We tried just updating the @sap/hdi-deploy version to 4.8.2 in that package.json and doing the install you recommended above (npm i @sap/hdi-deploy@4.8.2), however, this did not work. The only thing that resolved the issue was creating a package.json in the db folder like yours above.
Will we need to keep this db folder package.json or is this an issue with the current version and we will be able to move back to a single package.json in the future?
Thanks,
Andrew
Hi Andrew,
That's funny, I just had the same conversation with a colleague this morning! Somehow, people don't have a package.json in the db folder and don't know they should have.
Let me be clear here: developers must control their app dependencies, and package.json + package-lock.json is the only way (for nodejs with npm). In CAP nodejs, you must have a package.json in your db folder to have control on what is being used there.
If you don't, it'll default to the latest version of @sap/hdi-deploy. Installing it in the root package.json doesn't work because this is not used in the db-deployer application built from the db folder.
Some will say the default behaviour is a good thing. IMO, this is a flaw! It should be required, same as the root project package.json. And I hope SAP keep it separated. Using 1 package.json to build 2 different apps would be a mistake.
User | Count |
---|---|
76 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.