I've seen a few other questions similar to mine (this Puppeteer unable to run on heroku was helpful) but it doesn't quite solve my problem. I'm using the Markup's Blacklight npm package in a site of mine running on Heroku. When running locally it works perfectly, but on Heroku it doesn't work because a function in that package is what calls Puppeteer so I cannot add these arguments, although I know '--no-sandbox'
is an arg.
const browser = await puppeteer.launch({
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
],
});
I'm not getting any outright failures, but it tells me my browser = null
and I know the data produced is empty.