We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4904337 commit f586a18Copy full SHA for f586a18
packages/@ionic/cli/src/lib/integrations/capacitor/index.ts
@@ -227,11 +227,14 @@ export class Integration extends BaseIntegration<ProjectIntegration> {
227
});
228
229
getCapacitorConfig = lodash.memoize(async (): Promise<CapacitorConfig | undefined> => {
230
- const cli = await this.getCapacitorCLIConfig();
231
-
232
- if (cli) {
233
- debug('Loaded Capacitor config!');
234
- return cli.app.extConfig;
+ try {
+ const cli = await this.getCapacitorCLIConfig();
+ if (cli) {
+ debug('Loaded Capacitor config!');
+ return cli.app.extConfig;
235
+ }
236
+ } catch (ex) {
237
+ // ignore
238
}
239
240
// fallback to reading capacitor.config.json if it exists
0 commit comments