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

Fix Buffer warning #14

Open
seveibar opened this issue Apr 8, 2022 · 2 comments
Open

Fix Buffer warning #14

seveibar opened this issue Apr 8, 2022 · 2 comments

Comments

@seveibar
Copy link
Contributor

seveibar commented Apr 8, 2022

image

@seveibar
Copy link
Contributor Author

(node:127449) [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)
DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
    at showFlaggedDeprecation (buffer.js:198:11)
    at new Buffer (buffer.js:282:3)
    at module2.exports (/home/seve/w/seam/sms-gate/apps/sms-gate-server/src/node_modules/iconv-lite/lib/extend-node.js:11:46)
    at node_modules/iconv-lite/lib/index.js (/home/seve/w/seam/sms-gate/apps/sms-gate-server/src/node_modules/iconv-lite/lib/index.js:143:5)
    at __require (/home/seve/w/seam/sms-gate/apps/sms-gate-server/src/run-server.ts:28:50)
    at node_modules/raw-body/index.js (/home/seve/w/seam/sms-gate/apps/sms-gate-server/src/node_modules/raw-body/index.js:17:13)
    at __require (/home/seve/w/seam/sms-gate/apps/sms-gate-server/src/run-server.ts:28:50)
    at node_modules/micro/lib/index.js (/home/seve/w/seam/sms-gate/apps/sms-gate-server/src/node_modules/micro/lib/index.js:7:20)
    at __require (/home/seve/w/seam/sms-gate/apps/sms-gate-server/src/run-server.ts:28:50)
    at Object.<anonymous> (/home/seve/w/seam/sms-gate/apps/sms-gate-server/src/.nsm/index.ts:2:19)

@seveibar
Copy link
Contributor Author

It's due to iconv-lite. I can manually set a resolutions to fix it, but that's not great for every project that uses nextjs-server-modules
image

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

1 participant