Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved executablePath issue from the example. #745

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants