-
-
Notifications
You must be signed in to change notification settings - Fork 197
tns plugin add
fails when tns-android key is missing in package.json of the app
#3123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This looks as duplicate of #3028 |
This comment was marked as abuse.
This comment was marked as abuse.
I've successfully reproduced this issue by running the following steps:
The problem arises when the platforms dir exists, but the entry for respective runtime in package.json does not exist for some reason. So the issue is not related to local plugins only. |
Still reproducible with {N} 4.1. |
tns plugin add
fails when tns-android key is missing in package.json of the app
I'm having this issue |
Still reproducible with {N} 5.1. |
Otherwise it fails when doing `ns plugin add @enduco/nativescript-cscreenshot` (seems a quite old bug of the NS CLI, see NativeScript/nativescript-cli#3123)
Did you verify this is a real problem by searching
Yes, here.
Tell us about the problem
I do a lot of plugin development ;-) I tend to do
tns plugin add ../src or tns plugin add pluginname-1.0.0.tgz
All of these will cause nativescript to throw a error
The issue is inserted in the package.json:
"nativescript-pluginname": "file:<path to dir>",
When you attempt to get version numbers, "file:....." doesn't match and causes the above error.
Which platform(s) does your issue occur on?
Both
Please provide the following version numbers that your issue occurs with:
At least since TNS 3.0, still happening in 3.2
Please tell us how to recreate the issue in as much detail as possible.
tns plugin add ../src
from a demo folderThe text was updated successfully, but these errors were encountered: