From 67b05469d40397b0f1249a712c1fc30779e45d8b Mon Sep 17 00:00:00 2001 From: Mathieu Campagna Date: Mon, 28 Mar 2022 08:08:28 -0400 Subject: [PATCH 1/3] Resolve Puppeteer error Resolve Error cannot read property '_launcher' of undefined More info: https://stackoverflow.com/questions/69494700/puppeteer-launcher-error-results-with-undefined --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 67154b337b..a7997a3d4b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import * as Process from 'process'; import {config} from './config'; // Needs to be loaded first import {startAPIServer, stopAPIServer} from './web'; -import {Browser, launch} from 'puppeteer'; +import Puppeteer, { Browser } from "puppeteer"; import {getSleepTime} from './util'; import {logger} from './logger'; import {storeList} from './store/model'; @@ -107,7 +107,7 @@ export async function launchBrowser(): Promise { } await stop(); - const browser = await launch({ + const browser = await Puppeteer.launch({ args, defaultViewport: { height: config.page.height, From c2a80d36146e0fd58b9c61558074549cef64bd98 Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Mon, 13 Jun 2022 10:55:47 -0700 Subject: [PATCH 2/3] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index a7997a3d4b..14d68957d1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import * as Process from 'process'; import {config} from './config'; // Needs to be loaded first import {startAPIServer, stopAPIServer} from './web'; -import Puppeteer, { Browser } from "puppeteer"; +import Puppeteer, {Browser} from "puppeteer"; import {getSleepTime} from './util'; import {logger} from './logger'; import {storeList} from './store/model'; From 21e5999a934965fbdd740c713282f8d8bfca884a Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Mon, 13 Jun 2022 12:04:03 -0700 Subject: [PATCH 3/3] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 14d68957d1..a140694739 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import * as Process from 'process'; import {config} from './config'; // Needs to be loaded first import {startAPIServer, stopAPIServer} from './web'; -import Puppeteer, {Browser} from "puppeteer"; +import Puppeteer, {Browser} from 'puppeteer'; import {getSleepTime} from './util'; import {logger} from './logger'; import {storeList} from './store/model';