Meteor and Cordova plugins

Hi there,

I’m starting to use plugins in mi Meteor app. So far I’ve used a image picker from gallery and worked well but trying to use cordova-plugin-camera-preview but I can’t start the server. I’ve got this problem:

While adding plugin com.mbppower.camerapreview@0.0.8 to Cordova project:
Cordova error: Failed to fetch plugin com.mbppower.camerapreview@0.0.8
via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on
https://registry.npmjs.org/com.mbppower.camerapreview
at registry.fetch.fail.then.pinfo

I’ve opened a issue on the repository as well.

As I say in that link I’ve used that plugin in another different project (not Meteor) and worked perfectly.

Am I doing something wrong?

Could you try to remove the plugin and add it with version 1.0.6. That is the version specified on the npm page of the plugin: https://www.npmjs.com/package/cordova-camera-preview?

Same problem but with a different version: can’t start server

Ok, it works. I just realized we were talking about 2 different plugins:
https://www.npmjs.com/package/cordova-plugin-camera-preview
https://www.npmjs.com/package/cordova-camera-preview

My code doesn’t work with the last one but is normal, there are different plugins. At least the app doesn’t have any problem to start.

Cheers!

I commented on the GitHub issue as well, but I was able to add it no problem from the Cordova library instead of NPM.

meteor add cordova:cordova-camera-preview@1.0.6

Yes, as I said I was trying with a different one. There are different repositories.
Even the one I wanted is not a good version. I’ve created a new one with last changes (zoom, blur fixed, etc) here:
https://www.npmjs.com/package/cordova-plugin-preview-camera