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: Ionic cap run fails with error "Invalid target ID: ?" #29886

Open
3 tasks done
JulienLecoq opened this issue Sep 20, 2024 · 0 comments
Open
3 tasks done

bug: Ionic cap run fails with error "Invalid target ID: ?" #29886

JulienLecoq opened this issue Sep 20, 2024 · 0 comments
Labels

Comments

@JulienLecoq
Copy link

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

When running: ionic cap run iOS, my device is shown with an id: ?. Because of that, when selecting the device, it throws an error at the end of the running step.

Screenshot 2024-09-20 at 10 46 53 Screenshot 2024-09-20 at 10 53 19

Expected Behavior

The device id should be known and no error should be thrown.

Steps to Reproduce

  1. Create a new Ionic project.
  2. Run: ionic cap run ios

Code Reproduction URL

https://github.com/JulienLecoq/bug_ionic_cap_run_ios

Ionic Info

[WARN] Error loading @capacitor/android package.json: Error: Cannot find module '@capacitor/android/package.json'

   Require stack:
   - /Users/julien_lecoq/.nvm/versions/node/v20.14.0/lib/node_modules/@ionic/cli/lib/project/index.js
   - /Users/julien_lecoq/.nvm/versions/node/v20.14.0/lib/node_modules/@ionic/cli/lib/index.js
   - /Users/julien_lecoq/.nvm/versions/node/v20.14.0/lib/node_modules/@ionic/cli/index.js
   - /Users/julien_lecoq/.nvm/versions/node/v20.14.0/lib/node_modules/@ionic/cli/bin/ionic

Ionic:

Ionic CLI : 7.2.0 (/Users/julien_lecoq/.nvm/versions/node/v20.14.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.3.1
@angular-devkit/build-angular : 18.2.5
@angular-devkit/schematics : 18.2.5
@angular/cli : 18.2.5
@ionic/angular-toolkit : 11.0.1

Capacitor:

Capacitor CLI : 6.1.2
@capacitor/android : not installed
@capacitor/core : 6.1.2
@capacitor/ios : 6.1.2

Utility:

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

System:

NodeJS : v20.14.0 (/Users/julien_lecoq/.nvm/versions/node/v20.14.0/bin/node)
npm : 10.7.0
OS : macOS Unknown

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant