Hi, I’m trying to use puppeteer during a build/deploy, and am getting the following error:
Failed to launch the browser process!
/opt/build/repo/node_modules/puppeteer/.local-chromium/linux-809590/chrome-linux/chrome: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory
From what I have understood by reading Puppeteer docs, it’s supposed to run as an application (or a live script). If that’s the case indeed, I think, Netlify isn’t the service to run it on. That’s my guess, might be wrong.
Do you have Puppeteer taking a screenshot as part of the build step? Do you have an example to look at by any chance (code)? Did you have to create a build plugin?
Thanks. Was hoping to find a more complete example (assume this has to be packaged as a plugin, wasn’t planning on using Docker, etc)? Also, am I right in thinking there’s no persistent storage on Netlify (so you couldn’t run repeated builds and save a new screenshot each time to a directory… you’d need to save it off in a S3 bucket or something)?
Thank you. Will look at the Puppeteer node module; in my experience (probably because of timeouts), Puppeteer seems to be very particular on Netlify. I’ve tried updating it previously without success, so might stick with an older version.