{"record":{"id":"a754d8ce0532e6ce","repo":"quasarframework/quasar","slug":"failed-to-open-specific-browser","errorCode":null,"errorMessage":"Failed to open specific browser","messagePattern":"Failed to open specific browser","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"app-vite/lib/utils/open-browser.js","lineNumber":26,"sourceCode":"\n    open(url, {\n      wait\n    }).catch(err => {\n      console.error(err)\n      warn('Failed to open default browser')\n      warn()\n    })\n  }\n\n  if (opts) {\n    log('Opening browser at ' + url + ' with options: ' + JSON.stringify(opts))\n    log()\n    open(url, {\n      ...opts,\n      wait\n    }).catch(err => {\n      console.error(err)\n      warn('Failed to open specific browser')\n      warn()\n      openDefault()\n    })\n  } else {\n    openDefault()\n  }\n}\n","sourceCodeStart":8,"sourceCodeEnd":34,"githubUrl":"https://github.com/quasarframework/quasar/blob/4841521b5f635a971eb9e2710e5542efd194691b/app-vite/lib/utils/open-browser.js#L8-L34","documentation":"openBrowser with an explicit browser option (opts) tries to open the URL in that specific browser via the `open` package (app name or binary). If that launch rejects, it warns with this message and automatically falls back to openDefault(). It indicates the requested browser could not be resolved or launched on this machine.","triggerScenarios":"`quasar dev` with devServer.open set to a specific browser name/object (or the --browser flag) where the given app name is not a known browser alias for the OS or its binary is not installed/on PATH.","commonSituations":"Requesting 'chrome' when only Chromium or Edge is installed; a custom binary path with a typo or wrong platform name (e.g. 'google chrome' vs 'google-chrome' vs 'chrome' on Linux vs macOS vs Windows); browser installed in a non-standard location.","solutions":["Use the exact app name the `open` package expects for your OS (e.g. 'firefox', 'google-chrome' on Linux, 'Google Chrome' on macOS, 'chrome' on Windows)","Verify the browser binary exists and is on PATH (`which google-chrome`)","Remove the specific-browser option so Quasar falls back to the default browser","Check the console.error output above the warning for the precise spawn failure"],"exampleFix":"// before (quasar.config.js) on Linux\ndevServer: { server: { open: 'Chrome' } }\n// after\ndevServer: { server: { open: 'google-chrome' } }","handlingStrategy":"fallback","validationCode":"// verify the specific browser binary exists before configuring it\nconst { execSync } = require('node:child_process')\nfunction browserAvailable(bin) {\n  try { execSync(`which ${bin}`, { stdio: 'ignore' }); return true }\n  catch { return false }\n}\n// use only if true:\n// devServer: { server: { open: 'google-chrome' } }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use the `open` package's exact per-OS app names (e.g. 'google-chrome' on Linux, 'Google Chrome' on macOS, 'chrome' on Windows)","Verify the browser binary is installed and on PATH before setting the option","Omit the specific-browser option and rely on the OS default when unsure","Remember Quasar already falls back to the default browser — check the console.error for why the specific one failed"],"tags":["browser","dev-server","open","configuration"],"backgroundTag":"browser-launch-failed","analyzedSha":"4841521b5f635a971eb9e2710e5542efd194691b","analyzedAt":"2026-08-30T01:13:14.944Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}