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

Abierto
#5,088 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
ios, typescript
Área
cli, mobile

Línea de trabajo

Reproduce el flujo de trabajo multiaplicación con ionic integrations enable capacitor --project=myproject seguido de ionic capacitor add ios --project=myproject, y después repítelo para otra aplicación. Rastrea dónde crean estos comandos capacitor.config.json y detente cuando el archivo a nivel de proyecto ya no se cree innecesariamente, manteniendo el flujo de integración de la aplicación.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

triage

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.

Lenguaje dominante
TypeScript
Estrellas
2k
Forks
681
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ionic-team/ionic-cli

Todos los issues de ionic-team/ionic-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.