Problem adding integrations for multiple apps inside a multi-app project
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- ios, typescript
Hướng nghiên cứu
Tái hiện quy trình nhiều ứng dụng bằng ionic integrations enable capacitor --project=myproject, tiếp theo là ionic capacitor add ios --project=myproject, rồi lặp lại quy trình đó cho một ứng dụng khác. Theo dõi nơi các lệnh này tạo capacitor.config.json và dừng lại khi tệp ở cấp dự án không còn được tạo một cách không cần thiết, đồng thời vẫn giữ nguyên quy trình tích hợp ứng dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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:
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 681
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ionic-team/ionic-cli
-
triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
ionic-team/ionic-cli#5016 ·
-
ionic-cli development status Đang mởtriage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
ionic-team/ionic-cli#5131 ·
-
triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
ionic-team/ionic-cli#5130 ·
-
triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
ionic-team/ionic-cli#5129 ·
-
triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
ionic-team/ionic-cli#5127 · 2 bình luận ·
Tất cả issue của ionic-team/ionic-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
copse-dev/agent-pane#2953 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Đang mởbug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Client support matrix inclusion Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
calcite-components needs triage refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Esri/calcite-design-system#15203 ·