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

Create MDK- Client command fails with MDK 24.7.1 : " Can't resolve 'platform "

robert_hunger
Participant
0 Kudos
742

Hi MDK- Client Expert,  Hi Bill ( @bill_froelich )

I get errors when executing the ./create_client command. When creating the client, some NODES modules are not found in the right directory. Unfortunately, I have no experience with NODE JS projects and don't know what to do. 

many thanks
Robert

ERROR in ../node_modules/tns-core-modules/file-system/file-system.js 14:19-38
Module not found: Error: Can't resolve 'platform' in '....MDK/MDKClient_SDK_24.7/node_modules/tns-core-modules/file-system'
resolve 'platform' in '....MDK/MDKClient_SDK_24.7/node_modules/tns-core-modules/file-system'
Parsed request is a module
using description file: ....MDK/MDKClient_SDK_24.7/node_modules/tns-core-modules/file-system/package.json (relative path: .)
resolve as module
looking for modules in ....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules
single file module
using description file: ....MDK/MDKClient_SDK_24.7/MDE24QAS002/package.json (relative path: ./node_modules/platform)
no extension
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform doesn't exist
.android.ts
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.android.ts doesn't exist
.ts
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.ts doesn't exist
.android.js
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.android.js doesn't exist
.js
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.js doesn't exist
.android.mjs
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.android.mjs doesn't exist
.mjs
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.mjs doesn't exist
.android.css
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.android.css doesn't exist
.css
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.css doesn't exist
.android.scss
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.android.scss doesn't exist
.scss
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.scss doesn't exist
.android.json
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.android.json doesn't exist
.json
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform.json doesn't exist
....MDK/MDKClient_SDK_24.7/MDE24QAS002/node_modules/platform doesn't exist
....MDK/MDKClient_SDK_24.7/node_modules/tns-core-modules/file-system/node_modules doesn't exist or is not a directory
....MDK/MDKClient_SDK_24.7/node_modules/tns-core-modules/node_modules doesn't exist or is not a directory
....MDK/MDKClient_SDK_24.7/node_modules/node_modules doesn't exist or is not a directory
looking for modules in ....MDK/MDKClient_SDK_24.7/node_modules
single file module
using description file: ....MDK/MDKClient_SDK_24.7/package.json (relative path: ./node_modules/platform)
no extension
....MDK/MDKClient_SDK_24.7/node_modules/platform doesn't exist
.android.ts
....MDK/MDKClient_SDK_24.7/node_modules/platform.android.ts doesn't exist
.ts
....MDK/MDKClient_SDK_24.7/node_modules/platform.ts doesn't exist
.android.js
....MDK/MDKClient_SDK_24.7/node_modules/platform.android.js doesn't exist
.js
....MDK/MDKClient_SDK_24.7/node_modules/platform.js doesn't exist
.android.mjs
....MDK/MDKClient_SDK_24.7/node_modules/platform.android.mjs doesn't exist
.mjs
....MDK/MDKClient_SDK_24.7/node_modules/platform.mjs doesn't exist
.android.css
....MDK/MDKClient_SDK_24.7/node_modules/platform.android.css doesn't exist
.css
....MDK/MDKClient_SDK_24.7/node_modules/platform.css doesn't exist
.android.scss
....MDK/MDKClient_SDK_24.7/node_modules/platform.android.scss doesn't exist
.scss
....MDK/MDKClient_SDK_24.7/node_modules/platform.scss doesn't exist
.android.json
....MDK/MDKClient_SDK_24.7/node_modules/platform.android.json doesn't exist
.json
....MDK/MDKClient_SDK_24.7/node_modules/platform.json doesn't exist
....MDK/MDKClient_SDK_24.7/node_modules/platform doesn't exist
....MDK/node_modules doesn't exist or is not a directory
....node_modules doesn't exist or is not a directory
/Users/rob/Documents/node_modules doesn't exist or is not a directory
/Users/rob/node_modules doesn't exist or is not a directory
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory

 

 

Accepted Solutions (0)

Answers (3)

Answers (3)

Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert

@robert_hungerYou may implement a metadata extension to play sound with MDK without using a plugin approach. However, this would require more effort. With plugins, it would be easier to integrate and achieve the required functionality.

Is there a particular reason why you prefer not to use the plugin approach?

 

robert_hunger
Participant
0 Kudos
Many thanks for your advice.Unfortunately I have no idea how to achieve this with meta extension. Do you perhaps have an example or a tutorial?
Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can have a look at the tutorials listed here https://developers.sap.com/mission.mobile-dev-kit-controls.html 

Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert
0 Kudos

@robert_hunger 

Are you using MDK version 24.7.1?

Did you already check and verify if all the required tooling is in place as per MDK dependency installer for the MDK version you are using to create a branded client?

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
MDK 24.7.5 was recently released and if you are just getting started I would recommend using that version
robert_hunger
Participant
0 Kudos

Hi @Jitendra_Kansal78 Sorry, of course 24.7.1. It's a branded custom client with ns- plugin for audio to show errors in processing with tones. This is important because parts are scanned very quickly and the display message cannot always be observed. Are there any ways to play sound with MDK without plugins?