export type Browser = import ( "puppeteer" ) . Browser ; export async function launchChrome ( ) { let puppeteer ; try { puppeteer = await import ( "puppeteer" ) ; } catch ( e ) { throw new Error ( `Please install the 'puppeteer' package:

Using NPM:
$ npm install -D puppeteer

Using Yarn:
$ yarn add -D puppeteer` ) ; } return puppeteer . default . launch ( { args : [ "--no-sandbox" ] , } ) ; }