cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Extraneous module (punycode) preventing from deploying CAP Java app to BTP

Saumya3
Associate
Associate
0 Kudos
467

Hey SAP Community,

When deploying our CAP Java app to BTP, we are getting the following error in our html5 deployer:

Saumya3_0-1729141368892.png

The error is due to the deprecated punycode module.

However, punycode module is not used in our code. It is not present in the package.json file.
If we run the command `npm ls punycode`, the output is as follows:

Saumya3_1-1729141409809.png

After running the deploy command (`mbt build` then `cf deploy mta_archives/SMT_1.0.0-SNAPSHOT.mtar`), which fails, if we run the `npm ls punycode` command again, we get the following output: 

Saumya3_2-1729141435928.png

Prior to this, we deployed only the backend which also contained the punycode module but that deployed successfully.

Questions:

1. What needs to be changed to remove this error?

2. How can we deploy regardless of this punycode module?

3. Can we also deploy android and iOS versions of the app instead of web to BTP?

 

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
SAP Mentor
SAP Mentor
0 Kudos

Seems you've @sap/cds-dk is defined as a dependency and not only as a dev dependency. Try to change that and try again.

Saumya3
Associate
Associate
0 Kudos
@sap/cds is defined only in dev dependencies. our package.json file is as follows:
Saumya3
Associate
Associate
0 Kudos
{..., "devDependencies": { "@sap/cds": "^8" }, ... "dependencies": { "cors": "^2.8.5", "mbt": "^1.2.33" }...}