I want to deploy the Patch following the instructi...
# suitecommerce
m
I want to deploy the Patch following the instructions for the SCA version 2019.2 from here: Reference Product List Patch for SCA 2019.2 to 2024.1 However, I'm getting an error message during the deployment: it wants to find a typescript file when there are only js inside the SuiteScript folder. I don't know if it is related, but when I first run npm install with the corresponding node version (10.16.x) for SCA 2019.2, I get this error Error: Can't find Python executable "python", you can set the PYTHON env variable. Any help would be appreciated :)
c
Hi @Mark, I came across this same issue when attempting to deploy the patch with 2020.1. I found the issue to be the 'handleOverrides' method in the file at gulp/package-manager/index.js. It is replacing the '.js' file extension with a TypeScript '.ts' file extension, even in the case when it is a backend SuiteScript file. There is an updated version of the 'handleOverrides' method in later versions of SCA located in the same file. I grabbed it from 2024.2, which now only replaces the file extension if it is a front-end JavaScript file. After applying the change I was able to deploy. Hope this helps.
m
Hi @Cory, Thanks for your comment, that helps me a lot