Skip to content

Commit

Permalink
fix: fallback to download when no chrome paths exist
Browse files Browse the repository at this point in the history
Fixes #247
  • Loading branch information
harlan-zw committed Jan 1, 2025
1 parent 3f4a34e commit 05753be
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/core/src/resolveConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,13 @@ export const resolveUserConfig: (userConfig: UserConfig) => Promise<ResolvedUser
// if user is using the default chrome binary options
if (config.chrome.useSystem && !foundChrome) {
// we'll try and resolve their local chrome
const chromePath = Launcher.getFirstInstallation()
let chromePath = false
try {
chromePath = Launcher.getFirstInstallation()
}
catch (e) {
logger.debug('Chrome launcher failed to get a path.', e)
}
if (chromePath) {
logger.info(`Using system Chrome located at: \`${chromePath}\`.`)
// set default to puppeteer core
Expand Down

0 comments on commit 05753be

Please sign in to comment.