cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to proceed on MDK Annotations

ABMetallica
Explorer
0 Kudos
295

I have been following the SAP MDK Documentations. I am stuck at the annotations (intermediate) level. When creating annotation i get the following error in BTP IDE.

"Command failed: yo @ext-mdkvsc-npm-rel/mdk:newEntity --data "/tmp/.mdk_anno_config.json" --force ✖ An error occured while running @ext-mdkvsc-npm-rel/mdk:newEntity#writing Error @ext-mdkvsc-npm-rel/mdk:newEntity --data /tmp/.mdk_anno_config.json --force When copying multiple files, provide a directory as destination TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_ASSERTION') at process.set [as exitCode] (node:internal/bootstrap/node:123:9) at process.exit (node:internal/process/per_thread:182:24) at onError (/managed-content/globals/pnpm/5/.pnpm/yo@4.3.1_mem-fs@2.3.0/node_modules/yo/lib/cli.js:117:11) at /managed-content/globals/pnpm/5/.pnpm/yo@4.3.1_mem-fs@2.3.0/node_modules/yo/lib/cli.js:165:48"

If i try to create a new entity using npm i get : 

✖ An error occured while running @ext-mdkvsc-npm-rel/mdk:newEntity#writing
Error @ext-mdkvsc-npm-rel/mdk:newEntity --data /tmp/.mdk_anno_config.json --force

When copying multiple files, provide a directory as destination
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_ASSERTION')
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at process.exit (node:internal/process/per_thread:182:24)
at onError (/managed-content/globals/pnpm/5/.pnpm/yo@4.3.1_mem-fs@2.3.0/node_modules/yo/lib/cli.js:117:11)
at /managed-content/globals/pnpm/5/.pnpm/yo@4.3.1_mem-fs@2.3.0/node_modules/yo/lib/cli.js:165:48


Any suggestions would he really helpful since i am new to SAP. 

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
Can you please provide the link to the documentation you are following?
MonishKanna
Discoverer
0 Kudos
I'm following the same documentation and I'm facing the same issue too. Did you find any fix? @ABMetallica?
View Entire Topic
ABMetallica
Explorer
0 Kudos