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

"[email protected]" does not satisfy dependency plugin requirement #236

Open
hughknaus opened this issue Aug 4, 2022 · 8 comments
Open

Comments

@hughknaus
Copy link

Trying to use cordova-plugin-file-transfer in the same project that I'm using cordova-plugin-background-upload. However, with ionic repair the corodova prepare phase fails with:

Discovered plugin "cordova-plugin-file-transfer". Adding it to the project
Installing "cordova-plugin-file-transfer" for android
Failed to install 'cordova-plugin-file-transfer': CordovaError: Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "cordova-plugin-file@>=7.0.0". Try --force to use installed plugin as dependency.
    at C:\Users\hknaus\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:526:43
Failed to restore plugin "cordova-plugin-file-transfer". You might need to try adding it again. Error: CordovaError: Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "cordova-plugin-file@>=7.0.0". Try --force to use installed plugin as dependency.

cordova-plugin-background-upload has a dependency on [email protected] while cordova-plugin-file-transfer has a dependency of cordova-plugin-file@>=7.0.0, how can these be used in the same project with the dependency disparity?

Snippet from my package.json:
image

@zfir
Copy link
Member

zfir commented Aug 5, 2022

Hello @hughknaus,

You can try to increase the dependency on our plugin. (Create a PR and we will do some tests and merge it)

<dependency id="cordova-plugin-file" version="6.0.2"/>

or you can do the reverse.

Regards,
Zafir

@hughknaus
Copy link
Author

hughknaus commented Aug 5, 2022

PR: Update dependency of cordova-plugin-file version -- #237

Does fix the build issue and initial tests around uploading appear okay.

@zfir
Copy link
Member

zfir commented Aug 8, 2022

Hello @hughknaus,

Will test the PR and let you know.

Regards,
Zafir.

@zfir
Copy link
Member

zfir commented Aug 16, 2022

Hello @hughknaus,

This version of cordova-plugin-file has a problem when displaying an img in the WebView.

apache/cordova-plugin-file#526

The link above address this issue.

Regards,
Zafir.

@hughknaus
Copy link
Author

@zfir Yeah, I believe we were running into it on Android as well. iOS seemed to be okay though.

What are the plans for resolving these issues? Do you know the timeframe for resolution?

@zfir
Copy link
Member

zfir commented Aug 17, 2022

Hello @hughknaus,

No idea. We need to wait for Apache to release a new version. For now, I would recommend you to try to downgrade the dependency of cordova-plugin-file-transfer to 6.0.2 and test again.

Regards,
Zafir.

@gbrits
Copy link

gbrits commented Nov 17, 2022

I'm using cordova-plugin-ns0m-file-transfer - does this fix your problems? I am still running into a file not found issue though, but I'm thinking that's a URL file:// thing that I can hopefully fix soon.

@MaximBelov
Copy link
Contributor

fixed
#280

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

4 participants