You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys I'm using node to run lighthouse and chrome launcher wont launch in my dev env (mac)
Any idea whats up? or at least how to debug it?
It seems like there's something wrong with the dependency - (but typescript compiles)
i think maybe it cant find chrome?
importChromeLauncherfrom"chrome-launcher";constchromeOptions={chromeFlags: ["--headless","--disable-gpu"],};asyncfunctionlaunchChrome(){try{constchrome=awaitChromeLauncher.launch(chromeOptions);console.log("chrome running!");returnchrome;}catch(e){console.log("**** Chrome failed to launch",e);debugger;// always land here.throwe;}}
**** Chrome failed to launch TypeError: Cannot read properties of undefined (reading 'launch')
at launchChrome (webpack-internal:///(api)/./src/server/reporting/lighthouseRunner.ts:35:84)
I tried:
Adding this to my env CHROME_PATH="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
I used the chrome path option
adding and removing chrome-launcher from package.json dependancies "chrome-launcher": "^0.15.1",
... More
Hi guys I'm using node to run lighthouse and chrome launcher wont launch in my dev env (mac)
Any idea whats up? or at least how to debug it?
It seems like there's something wrong with the dependency - (but typescript compiles)
i think maybe it cant find chrome?
**** Chrome failed to launch TypeError: Cannot read properties of undefined (reading 'launch')
at launchChrome (webpack-internal:///(api)/./src/server/reporting/lighthouseRunner.ts:35:84)
I tried:
CHROME_PATH="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
"chrome-launcher": "^0.15.1",
... More
I created a stack overflow question for this too - https://stackoverflow.com/questions/75796888/chrome-launcher-fails-to-launch-chrome
The text was updated successfully, but these errors were encountered: