on 08-28-2023 3:40 PM
Hello,
since today it's not possible anymore to deploy the MDK project (SAP Asset Manager 2110) from Business Application Studio.
bill.froelich & jitendrakumar.kansal : Are there any new changes in deployment process?
I recognized, that since today the projects "SAP Asset Manager Metadata" and "SAP Asset Manager Component" are always copied automatically into the .build-folder (many changes in GIT history).
--> Normally after the successfull build the should be three files: "bundle.js", "bundle.js.map" & "uploadBundle.zip"
I did just ONE change in an already copied action and started the "MDK: Deploy" from Application.app like usual - on friday it worked fine?
Does anybody have the same problems and can help me?
Regards
Björn
The last lines in the terminal are:
copy component project from /home/user/projects/ASTMGRMETDTA/CUST 2110 Debug/SAM_2110_Component to /home/user/projects/ASTMGRMETDTA/CUST 2110 Debug/SAM_2110_Metadata/.build/SAM_2110_Component.SAM_2110_Component
mdk-tools version is:
1.4.0
Build command line is:
mdk build --project "/home/user/projects/ASTMGRMETDTA/CUST 2110 Debug/SAM_2110_Metadata/.build/SAPAssetManager" --externals --filters /SAPAssetManager/Web /SAM_2110_Component/Web --validate --target zip --logFile "/home/user/projects/ASTMGRMETDTA/CUST 2110 Debug/SAM_2110_Metadata/.build/log.txt" --ts-target "es6" --devtool source-map
UNKNOWN_OPTION: Unknown option: --validate
Command failed: mdk build --project "/home/user/projects/ASTMGRMETDTA00_0-70006972/CUST 2110 Debug/SAM_2110_Metadata/.build/SAPAssetManager" --externals --filters /SAPAssetManager/Web /SAM_2110_Component/Web --validate --target zip --logFile "/home/user/projects/ASTMGRMETDTA/CUST 2110 Debug/SAM_2110_Metadata/.build/log.txt" --ts-target "es6" --devtool source-map
* Terminal will be reused by tasks, press any key to close it.
From your log, seems you installed a global mdk-tools before, and the version is older than the latest.
So, the solution is to disable the global installed mdk-tools, or update the global mdk-tools if you want a global one.
Option 1: Disable the global mdk-tools
1. Open a terminal and type "which mdk" to find the folder where the mdk command is found
2. Goto the folder, rename or remove the mdk file.
3. The expected result is if you try to execute "mdk" in a terminal, it should return "command not found"
Option 2: Update the global mdk-tools
npm i -g @sap/mdk-tools
Thanks to zhen-kun.li whose answer to a similar question I am re-using here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
9 | |
6 | |
6 | |
4 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.