Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用hprose报错,源码中使用了废弃的api #33

Open
YuetTusi opened this issue Jul 26, 2019 · 1 comment
Open

使用hprose报错,源码中使用了废弃的api #33

YuetTusi opened this issue Jul 26, 2019 · 1 comment

Comments

@YuetTusi
Copy link

我的技术栈是React+Electron,在引入hprose后控制台报错误调用了new Buffer()这个已经废弃的api,建议改为Buffer.alloc(),请问这个问题如何解决?

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

andot commented Jul 26, 2019

你用 TypeScript 版本试试,那个比较新。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants