Skip to content

"new Buffer() is deprecated" issue after compile with ncc #92

@dungwinux

Description

@dungwinux

After running ncc (powered by webpack), the output would include new Buffer(), which is deprecated since Node v10. As a result, Wafter would print warning out as error when starting server.

MIRAI Wafter 1.15.0+local
Copyright (c) 2018-2019 Vườn ươm A0. MIT License.
√ How can I help you ? · Start server
(node:3944) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Wafter needs to either install polyfill or try to replace new Buffer() after running ncc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions