Skip to content

Node DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. #589

@Reg011

Description

@Reg011

Describe the bug

A depreciation warning about Buffer() is shown when a pdf has been rendered. In the future Node versions, Buffer() will be removed. Which will broke the rendering process.

To Reproduce

Have Node v10.15.3 or more.

  1. Render a new pdf.
  2. Open the browser console.
  3. See the warning.

Screenshots
Untitled

Desktop:

  • OS: Windows
  • Browser: Chromium (Electron)
  • @react-pdf/renderer: 1.5.4,
  • @react-pdf/styled-components: 1.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions