(node:6572) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use node --trace-deprecation ... to show where the warning was created)
#58170
-
SummaryI am getting this issue for running nextjs under iis. most of the time the nextjs app works fine there with nextjs's custom server with expressjs under iis. this issue only happenes on live production server. (node:6572) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)Additional informationApp Deployed on : IIS
NextJS Version : 13.5.4
Using App Router : true
Using Custom Server : true
Custom Server Program : express.js boilerplate.
Occurrence of error : undefined
issue only happened on live server, suddenly, mostly occures once a day and we had to restart the server and issue solves but we just can't live with it like that.ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
|
What's your Node version? |
Beta Was this translation helpful? Give feedback.
-
|
Update both nodejs and npm to the latest versions. After that go to your project and delete the node_modules folder and re-install it by |
Beta Was this translation helpful? Give feedback.
-
|
I have the same issue. It's not related to Next.js. I guess you are using web3.js 1.x. It's from this package. You can just ignore it, or be brave and upgrade to the latest web3.js v4. It might take a lot of refactoring work. |
Beta Was this translation helpful? Give feedback.
-
|
@shrekuu my issue solved when i updated my tsconfig file to use ES2015 and above. |
Beta Was this translation helpful? Give feedback.
@Saprou my issue solved when i updated my tsconfig file to use
ES2015and above.I Am Now using
ES2020