Can't print a pdf with serverless chromium

I’m trying to print a pdf using Puppeteer & Chromium.

I’m following a few people who say they got it to work, such as:

However when I run it, I get the error:

PDF generation error: Error: Could not find Chrome (ver. 131.0.6778.108).

Part of the reason for this error is there is a 50mb limit to functions, and so people have to do workarounds to access chrome browser.

Vercel, can you maintain a hosted version of a chrome tar that people can access that’s built into Vercel? Searching online, I see many people saying they can’t get pdf printing to work.

Is there a recommended way ot print a PDF from vercel?

Hi, @jlindqui!

Could you provide a minimal reproducible example for us?