Skip to content

Buffer() is deprecated #1392

Closed
Closed
@vtrifonov

Description

@vtrifonov

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • Android Runtime: 5.4.0

Describe the bug
When building android app the following warning appears when running SBG:

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

To Reproduce

tns create test --js
cd test
tns build android

Expected behavior
The warning should not show up.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions