Skip to content

Module build Failed #167

@JonhnyDev

Description

@JonhnyDev

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
  })

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions