-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
bug: Puppeteer reports a weird warning #247
Comments
Fixed the weird warning, and bumped up the puppeteer version.
Do you mean the message shows up in the terminal or in the generated PDF? |
@simonhaenisch , Its showed up in yellow in terminal |
Same here |
This will resolve itself soon enough with the next major version of puppeteer, I assume. |
This happens because there is a new headless implementation, the previous one will be soon deprecated, the default option in md-to-pdf is still using it, this issue is resolved by changing the headless option to "new", it works fine, so is a simple update. Temporary fix const pdf = await mdToPdf(
{ content: "" },
{
launch_options: {
headless: "new",
},
}
); |
Context:
md-to-pdf -v
): 5.2.4Describe the bug:
When you run to get the pdf of an MD file, some weird warning lands on the screen. check below.
Puppeteer old Headless deprecation warning:
In the near future
headless: true
will default to the new Headless modefor 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"
topuppeteer.launch()
If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.
The text was updated successfully, but these errors were encountered: