Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions packages/@ionic/cli/src/lib/integrations/capacitor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,14 @@ export class Integration extends BaseIntegration<ProjectIntegration> {
});

getCapacitorConfig = lodash.memoize(async (): Promise<CapacitorConfig | undefined> => {
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
Expand Down