cloudflare/puppeteer

[Bug]: getting pdf is not a function

Closed this issue · 2 comments

advany commented

Bug description

Calling page.pdf() causes this error

Puppeteer version

latest

Node.js version

latest

npm version

latest

What operating system are you seeing the problem on?

macOS

Relevant log output

No response

rvlzzr commented

a workaround would be:

declare module "@cloudflare/puppeteer" {
  interface Page {
    pdf(options?: puppeteer.PDFOptions): Promise<Buffer>;
  }
}

This has been fixed. Please install the 0.0.5 or above version.