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

bug: Installing missing dependency loops forever with cordova-plugin-chrome-apps-common #2217

Closed
4 tasks
xurxofp opened this issue Nov 28, 2019 · 6 comments · Fixed by #2622
Closed
4 tasks

Comments

@xurxofp
Copy link

xurxofp commented Nov 28, 2019

Bug Report

The cordova-plugin-chrome-apps-common is causing a dependency install loop on npx cap sync:

npx cap sync
✔ Copying web assets from www to android/app/src/main/assets/public in 668.68ms
✔ Copying native bridge in 2.36ms
✔ Copying capacitor.config.json in 1.48ms
⠧ copy  Found 2 Cordova plugins for android
    cordova-plugin-chrome-apps-common (1.0.7)
    cordova-plugin-chrome-apps-sockets-udp (1.3.0)
✔ copy in 835.77ms
✔ Updating Android plugins in 13.83ms
[info] installing missing dependency plugin cordova-plugin-chrome-apps-common@1
✔ Updating Android plugins in 13.55ms
[info] installing missing dependency plugin cordova-plugin-chrome-apps-common@1
✔ Updating Android plugins in 10.81ms
[info] installing missing dependency plugin cordova-plugin-chrome-apps-common@1
✔ Updating Android plugins in 4.93ms
[info] installing missing dependency plugin cordova-plugin-chrome-apps-common@1
✔ Updating Android plugins in 5.60ms
[info] installing missing dependency plugin cordova-plugin-chrome-apps-common@1

And it goes forever...

Capacitor Version

npx cap doctor output:

Latest Dependencies:

  @capacitor/cli: 1.3.0

  @capacitor/core: 1.3.0

  @capacitor/android: 1.3.0

  @capacitor/ios: 1.3.0

Installed Dependencies:

  @capacitor/ios not installed

  @capacitor/cli 1.3.0

  @capacitor/core 1.3.0

  @capacitor/android 1.3.0

Affected Platform(s)

  • Android
  • iOS
  • Electron
  • Web

Reproduction Steps

Just creating a blank project and installing the plugin:

ionic start test blank --type=angular
npm install --save @capacitor/core @capacitor/cli
npx cap init
npx cap add android
npm install cordova-plugin-chrome-apps-sockets-udp
npx cap sync

Other Technical Details

Ionic:

   Ionic CLI                     : 5.4.9 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.11.5
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.1.1

Capacitor:

   Capacitor CLI   : 1.3.0
   @capacitor/core : 1.3.0

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v13.2.0 (/usr/local/Cellar/node/13.2.0/bin/node)
   npm    : 6.13.1
   OS     : macOS Catalina
@xurxofp xurxofp changed the title bug: installing missing dependency loops forever with cordova-plugin-chrome-apps-common Installing missing dependency loops forever with cordova-plugin-chrome-apps-common Nov 28, 2019
@xurxofp xurxofp changed the title Installing missing dependency loops forever with cordova-plugin-chrome-apps-common bug: Installing missing dependency loops forever with cordova-plugin-chrome-apps-common Nov 28, 2019
@bryplano
Copy link
Contributor

This is probably an incompatible plugin, considering the last publish to it was 5 years ago. :\

@jcesarmobile
Copy link
Member

jcesarmobile commented Dec 12, 2019

This is really a problem in the plugin cordova-plugin-chrome-apps-sockets-udp, the dependencies are not using proper syntax, it has a PR that should fix it, but has not been merged after almost 3 years.

Anyway, the CLI could easily handle this by removing the @1 part when looking for dependencies.

@parthnayak7448
Copy link

How to solve this can anyone help please with proper step instead of linking the commit it will be appreciated thanks

@unitree-czk
Copy link
Contributor

How to solve this can anyone help please with proper step instead of linking the commit it will be appreciated thanks

Please see my plugin, capacitor-udp

@unitree-czk
Copy link
Contributor

I have written a udp plugin for capacitor. Feel free to check it out!

capacitor-udp

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 12, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants