question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Reg011commented, May 6, 2019

I’d be willing to solve this issue myself in a near future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Buffer() is deprecated due to security and usability issues ...
According to the deprecation warning new Buffer() should be replaced with one of: Buffer.alloc(); Buffer.allocUnsafe() or; Buffer.from().
Read more >
Porting to the Buffer.from() / Buffer.alloc() API - Node.js
The migration fixes the following deprecation warning: The Buffer() and new Buffer() constructors are not recommended for use due to security and usability...
Read more >
[BUG]: DeprecationWarning: Buffer() is deprecated due to ...
allocUnsafe(), or Buffer.from() methods instead. (Use ... DeprecationWarning: Buffer() is deprecated due to security and usability issues.
Read more >
Getting (node:3524) [DEP0005] DeprecationWarning: Buffer ...
(node:3524) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe() ...
Read more >
Avoid using Buffer deprecated APIs | CAST Appmarq
Using deprecated Node.js API could lead to security compliancy issues. The Buffer() function and new Buffer() constructor are deprecated due to API ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found