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.
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.
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
andionic 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 errorCannot run init for a project using a non-JSON configuration file. Delete capacitor.config.ts and try again.
. As a quick fix I delete thecapacitor.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:
My
ionic info
: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.