-
Notifications
You must be signed in to change notification settings - Fork 69
Description
What happened?
I know that this bug has been reported several times, but I honestly don't know why it keeps happening.
Compliance with Browsershot requirements using the following versions on a Digital Ocean droplet deployed with Laravel Forge:
Ubuntu: 24.04
Node: v22.15.1
NPM: 11.5.1
PUPPETEER: 24.8.2
How to reproduce the bug
Follow the Browsershot docs for a Forge provisioned server:
-
Install puppeteer
sudo npm install -g puppeteer -
Install chromium
npx puppeteer browsers install chrome -
Install dependencies
sudo apt update
sudo apt install libx11-xcb1 libxcomposite1 libasound2t64 libatk1.0-0 libatk-bridge2.0-0 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6
Finally, just try to generate a PDF file using any method.
Package Version
1.6
PHP Version
8.4
Laravel Version
12.x
Which operating systems does with happen with?
Linux
Notes
Once you install chrome-headless, the problem is solved.
npx puppeteer browsers install chrome-headless-shell
Is this a requirement that does not appear in the docs?