Skip to content

Conversation

vikasg603
Copy link

In the latest version of puppeteer-core, it is mandatory to pass executablePath, or else it throws the below error

Error: An `executablePath` or `channel` must be specified for `puppeteer-core`

This pull request will resolve this issue from the example code.

In the latest version of puppeteer-core, it is mandatory to pass executablePath, or else it throws the below error
"Error: An `executablePath` or `channel` must be specified for `puppeteer-core`"

This pull request will resolve this issue from the example code.
@github-actions github-actions bot added the package: core Affecting a core package label Nov 1, 2022
@AhmadIbrahiim
Copy link

With puppeteer 19.x.x this should work for you.

import { executablePath } from 'puppeteer';
import puppeteer from 'puppeteer-extra';

  const browser = await puppeteer.launch({
    headless: true,
    executablePath: executablePath(),
  });
  

@vikasg603
Copy link
Author

But @AhmadIbrahiim don't you think this should also be an part of the docs?

@AhmadIbrahiim
Copy link

But @AhmadIbrahiim don't you think this should also be an part of the docs?

Yeah, It should be

Copy link

@AhmadIbrahiim AhmadIbrahiim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks really good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core Affecting a core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants