I’m trying to deploy a library with puppeteer and getting a Chrome version error. Any Ideas on how to fix it?
I have npx puppeteer browsers install chrome
in a post install
Instance is healthy. All health checks are passing.
Error: Could not find Chrome (ver. 126.0.6478.63). This can occur if either
1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or
2. your cache path is incorrectly configured (which is: /app/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at ChromeLauncher.resolveExecutablePath (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:295:27)
at ChromeLauncher.executablePath (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:209:25)
at ChromeLauncher.computeLaunchArguments (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:89:37)
at async ChromeLauncher.launch (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:70:28)
at async Promise.all (index 0)
at async initBrowserAndServer (/workspace/node_modules/@revideo/renderer/lib/server/render-video.js:33:31)
at async initializeBrowserAndStartRendering (/workspace/node_modules/@revideo/renderer/lib/server/render-video.js:132:47)
at async Promise.all (index 0)
at async renderVideo (/workspace/node_modules/@revideo/renderer/lib/server/render-video.js:207:5)
at async renderWithCallback (/workspace/node_modules/@revideo/cli/dist/server/render.js:29:9)
Error: Could not find Chrome (ver. 126.0.6478.63). This can occur if either
1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or
2. your cache path is incorrectly configured (which is: /app/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at ChromeLauncher.resolveExecutablePath (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:295:27)
at ChromeLauncher.executablePath (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:209:25)
at ChromeLauncher.computeLaunchArguments (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:89:37)
at async ChromeLauncher.launch (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:70:28)
at async Promise.all (index 0)
at async initBrowserAndServer (/workspace/node_modules/@revideo/renderer/lib/server/render-video.js:33:31)
at async initializeBrowserAndStartRendering (/workspace/node_modules/@revideo/renderer/lib/server/render-video.js:132:47)
at async Promise.all (index 0)
at async renderVideo (/workspace/node_modules/@revideo/renderer/lib/server/render-video.js:207:5)
at async renderWithCallback (/workspace/node_modules/@revideo/cli/dist/server/render.js:29:9)