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

Puppeteer old Headless deprecation warning #441

Open
badfeather opened this issue Jan 19, 2024 · 1 comment
Open

Puppeteer old Headless deprecation warning #441

badfeather opened this issue Jan 19, 2024 · 1 comment

Comments

@badfeather
Copy link

I'm receiving the following message when running Pageres:

    In the near future `headless: true` will default to the new Headless mode
    for Chrome instead of the old Headless implementation. For more
    information, please see https://developer.chrome.com/articles/new-headless/.
    Consider opting in early by passing `headless: "new"` to `puppeteer.launch()`
    If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.

(node:22972) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.```
@RobLoach
Copy link

RobLoach commented Mar 5, 2024

A workaround for now can be passing launchOptions headless: 'new'....

await new pageres({
  launchOptions: {
      headless: 'new'
  }
})

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

No branches or pull requests

2 participants