Headless is not set to true by default with [email protected] with NVM on Ubuntu 22.04 #844
kaspernowak
started this conversation in
Bugs
Replies: 1 comment
-
in which file |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With a laravel app on an OpenLiteSpeed virtual host on a Ubuntu 22.04 server, installing the latest puppeteer (22.7.1) with nvm* npm causes spatie/laravel-pdf, which uses browsershot under the hood, to crash. Even when setting the correct path to the node directory used by the laravel project due to using nvm.
After too many hours of debugging, I got it to work with by customizing the browsershot instance like this:
I found that
headless=true
also works butheadless=new
does not, neither does->headless()
or->headlessNew()
.Not setting the headless chromium argument results in error.
My understanding is that Browsershot should launch puppeteer with
headless=true
by default, but this does not seem to be the case.So it seems like this is a bug, at least with newer versions of puppeteer.
Beta Was this translation helpful? Give feedback.
All reactions