diff --git a/packages/@ionic/cli/src/lib/integrations/capacitor/index.ts b/packages/@ionic/cli/src/lib/integrations/capacitor/index.ts index 32a720a1e4..223daabbcf 100644 --- a/packages/@ionic/cli/src/lib/integrations/capacitor/index.ts +++ b/packages/@ionic/cli/src/lib/integrations/capacitor/index.ts @@ -227,11 +227,14 @@ export class Integration extends BaseIntegration { }); getCapacitorConfig = lodash.memoize(async (): Promise => { - const cli = await this.getCapacitorCLIConfig(); - - if (cli) { - debug('Loaded Capacitor config!'); - return cli.app.extConfig; + try { + const cli = await this.getCapacitorCLIConfig(); + if (cli) { + debug('Loaded Capacitor config!'); + return cli.app.extConfig; + } + } catch (ex) { + // ignore } // fallback to reading capacitor.config.json if it exists