-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
I'm trying to use ELECTRONJS + ReactJS + Typescript with 'puppeteer-core' it works perfectly when I don't use puppeteer
but when I add the puppeteer
returns this error below, can anyone help me?
import chrome from 'chrome-aws-lambda'
import puppeteer from 'puppeteer-core'
export async function Auth(url: string) {
const browser = await puppeteer.launch({
args: chrome.args,
executablePath: await chrome.executablePath,
headless: chrome.headless
})
const page = await browser.newPage()
await page.goto(url)
await page.screenshot({ path: 'example.png' })
await browser.close()
return true
}
ipcMain.on('message', async (_, message) => {
await Auth(url) //if I commit this line the application works normally again
})
Metadata
Metadata
Assignees
Labels
No labels
