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

Angular Monorepo problem #5075

Open
mlncck opened this issue Jan 18, 2024 · 0 comments
Open

Angular Monorepo problem #5075

mlncck opened this issue Jan 18, 2024 · 0 comments
Labels

Comments

@mlncck
Copy link

mlncck commented Jan 18, 2024

Description:

Problem with angular workspaces

Steps to Reproduce:

I was following this guide Angular-Monorepo concepts but when I run ionic capacitor add ios or ionic capacitor add android I got this output:

[capacitor] [error] The Capacitor CLI needs to run at the root of an npm package or in a valid NX monorepo.
[capacitor]         Make sure you have a package.json or project.json file in the directory where you run the Capacitor CLI.
[capacitor]         More info: https://docs.npmjs.com/cli/init
[capacitor]         Missing appId for new platform.
[capacitor]         Please add it in capacitor.config.json or run npx cap init.
[ERROR] An error occurred while running subprocess capacitor.

Output:

My ionic info:

Ionic:

   Ionic CLI                     : 7.1.6
   Ionic Framework               : @ionic/angular 7.6.5
   @angular-devkit/build-angular : 16.1.3 
   @angular-devkit/schematics    : 16.0.6 
   @angular/cli                  : 16.0.6
   @ionic/angular-toolkit        : 9.0.0

Capacitor:

   Capacitor CLI      : 5.4.1
   @capacitor/android : 5.4.1
   @capacitor/core    : 5.4.1
   @capacitor/ios     : 5.4.1

Utility:

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

System:

   NodeJS : v18.17.1
   npm    : 9.6.7
   OS     : macOS Unknown

Other Information:
sample app

@ionitron-bot ionitron-bot bot added the triage label Jan 18, 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