From 6aebd5d59582bb8f6892bf79e27a178283a2df87 Mon Sep 17 00:00:00 2001 From: Dmitriy Ronzhin Date: Thu, 9 Apr 2020 15:50:31 +0300 Subject: [PATCH] #6 run puppeteer with --no-sandbox --- lib/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generate.js b/lib/generate.js index c5c37e5..5aea8c9 100644 --- a/lib/generate.js +++ b/lib/generate.js @@ -10,7 +10,7 @@ const extractCommonBundle = require('./generate/extractCommonBundle'); module.exports = async (generationConfig) => { const browser = await puppeteer.launch({ headless: !generationConfig.debug, - args: ['--disable-dev-shm-usage'], + args: ['--no-sandbox', '--disable-dev-shm-usage'], defaultViewport: { width: 412, height: 732 }, }); const browserContext = await browser.createIncognitoBrowserContext();