Has anyone got puppeteer working on netlify node 18?

hello! has anyone had any luck getting puppeteer working in netlify functions?

I’ve tried every possible combination of puppeteer, puppeteer-min, @sparticuz/chromium-min, chrome-aws-lambda and @sparticuz/chromium on many different versions but I always get errors when I deploy (works fine locally with netlify dev) from ERR_INVALID_ARG_TYPE to browser closed! to libssl errors

any working versions/combinations would be much appreciated!

Mind sharing a minimal reproduction so we can check?

nevermind all I got it working, and blogged about it in case anyone else gets stuck

just solved it thanks! Getting Puppeteer to work in Netlify functions

thanks for coming back and sharing your solution with the community!

1 Like