Hi Experts,
I have developed plugin , i have not published the plugin.
How can i give local reference/path of plugin when building MDK client?
Please suggest.
Regards
Manish
Request clarification before answering.
You can put your plugin into the extensions folder in your .mdkproject using the following structure. You can name your Extension and Plugin whatever you want but I recommend no spaces in the folder/file names. When you run create client it will automatically copy it to the correct location in your MDK client.

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi bill.froelich ,
I am getting below error.
Is there way to give file path , in my sample app i used this way and my plugin works without publishing in npm.
"dependencies": { "@nativescript/core": "~8.0.0", "@nativescript/theme": "~3.0.1", "craveinfotech-zebra-scanner": "file:..\\craveinfotech-zebra-scanner"
Error log.
Customizing VersionInfo.json file for Android Settings app
Updating SAPFiori.h
Installing application dependencies
Removing NativeScript plugin craveinfotech-zebra-scanner
Plugin "craveinfotech-zebra-scanner" is not installed.
Plugin "craveinfotech-zebra-scanner" is not installed.
Failed to remove craveinfotech-zebra-scanner plugin.
Installing NativeScript plugin: craveinfotech-zebra-scanner
Command npm failed with exit code 1 Error output:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/craveinfotech-zebra-scanner - Not found
npm ERR! 404
npm ERR! 404 'craveinfotech-zebra-scanner@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/manishmeshram/.npm/_logs/2021-04-27T16_52_12_023Z-debug.log
Command npm failed with exit code 1 Error output:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/craveinfotech-zebra-scanner - Not found
npm ERR! 404
npm ERR! 404 'craveinfotech-zebra-scanner@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/manishmeshram/.npm/_logs/2021-04-27T16_52_12_023Z-debug.log
Can you share your expanded directory structure of your .mdkproject (you can leave metadata collapsed if you are bundling the app in there as well) along with the contents of your plugin package.json?
In your MDKProject.json, the only reference to your extension should be in the externals but only if you are bundling the metadata by default with the client. You should not list it in the NSPlugins.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 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.