Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#5,088 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ios, typescript
領域
cli, mobile

調査の方向性

ionic integrations enable capacitor --project=myproject に続けて ionic capacitor add ios --project=myproject を実行するマルチアプリワークフローを再現し、その後、別のアプリで繰り返します。これらのコマンドがどこで capacitor.config.json を作成するのかを追跡し、プロジェクトレベルのファイルが不要に作成されなくなった時点で止めます。ただし、アプリの統合フローは維持します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
2k
フォーク
681
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/ionic-cli のほかの issue

ionic-team/ionic-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。