-
Notifications
You must be signed in to change notification settings - Fork 3
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
"new Buffer() is deprecated" issue after compile with ncc #92
Comments
How about stopping using the constructor syntax altogether? After all, using it poses security risks. If you wish to replace all |
@minhducsun2002, the problem is, |
This should be reported to the ncc maintainers themselves. |
Well, this is rather the result of using Webpack. Perhaps some modules has |
Edit: This one doesn't work at all |
Try this : webpack/webpack#4240 (comment) |
Actually, the option above seems to be the solution for modules whose developers stepped away. We cannot control our (indirect) dependencies, and thus it seems to be the only way around this warning. See this article. |
@minhducsun2002, |
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.Wafter needs to either install polyfill or try to replace
new Buffer()
after running ncc.The text was updated successfully, but these errors were encountered: