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

Problem adding integrations for multiple apps inside a multi-app project #5088

Open
j-jalving opened this issue May 3, 2024 · 0 comments
Open
Labels

Comments

@j-jalving
Copy link

Description:

I have a script that creates new apps in my multi-app project. After initializing a new app the script runs ionic integrations enable capacitor --project=myproject and ionic capacitor add ios --project=myproject. The problem is that this creates a (useless) capacitor.config.json file is created in the root of the project. Then the next time the I create a new app it throws the error Cannot run init for a project using a non-JSON configuration file. Delete capacitor.config.ts and try again.. As a quick fix I delete the capacitor.config.json file each time the app is created, but it probably shouldn't be created in the first place.

Steps to Reproduce:
Initialize a new app in a Multi-app project and run ionic integrations enable capacitor --project=myproject. Then create another app and run the command for that app.

Output:

Screenshot 2024-05-03 at 15 16 10

My ionic info:

Ionic:

   Ionic CLI : 7.2.0 (/usr/local/lib/node_modules/@ionic/cli)

Capacitor:

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

Utility:

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

System:

   NodeJS : v20.12.0 (/usr/local/Cellar/node@20/20.12.0/bin/node)
   npm    : 10.6.0
   OS     : macOS Unknown

Other Information:
The error states Cannot run init for a project using a non-JSON configuration file.. But even when creating JSON configuration file the cli command still tries to create it's own TS config file.

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