Skip to content
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

Error: Invalid Plugin! ../ImageDetectionCordovaPlugin needs a valid package.json #11

Closed
lebars-r opened this issue Jun 27, 2017 · 4 comments

Comments

@lebars-r
Copy link

I followed the instruction wich was

git clone https://github.com/Cloudoki/ImageDetectionCordovaPlugin.git
cd <your-project-root>
cordova plugin add ../ImageDetectionCordovaPlugin

But I got the error

Error: Invalid Plugin! ../ImageDetectionCordovaPlugin needs a valid package.json

my project have been create with the command

ionic start myApp tabs

What am I doing wrong ? What it's this package.json the error talking about ? what should be inside it ? And in which folder ?

@a31859
Copy link
Contributor

a31859 commented Jun 29, 2017

Are you using Cordova 7? If you are that might be the issue. The plugin doesn't support Cordova 7 you can try to downgrade to Cordova 6 that should work.

@lebars-r
Copy link
Author

lebars-r commented Jul 3, 2017

I use cordova v6.11.0 .
I fixed the issue by creating a package.json with the command
plugman createpackagejson .
now I am deseperatly try to use it on a ionic 3 context but no luck so far.

@ltung
Copy link

ltung commented Aug 11, 2017

@lebars-r , Have you had any success in Ionic 3 with the plugin?

@a31859
Copy link
Contributor

a31859 commented Oct 22, 2017

@lebars-r I haven't tried the plugin with Ionic 3 so I can't be of much help there but the mentioned issue was fixed. Thanks for posting how you fixed it.

@a31859 a31859 closed this as completed Nov 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants