I just updgraded Meteor from 1.8 to 1.10.
Suddenly I am getting this error on my server console:
(node:18136) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
My application is working fine though.
Is this something I should worry about?
Or how can I fix this?
1 Like
I applied a solution by reading this article you provided:
I placed this line of code in my config.js
in Meteor.startup
:
Meteor.startup(function () {
global.Buffer = global.Buffer || Npm.require("buffer").Buffer;
console.log("Server has been started");
});
Would this work for me? Also I am a bit worried about my AWS instance keep going down again and again. So i have to restart the instance because I am unable to SSH into the instance either.
What could be the issue? Is it related to this buffer warning?