-
Notifications
You must be signed in to change notification settings - Fork 28.5k
DeprecationWarning: The util._extend
API is deprecated. Please use Object.assign() instead.
#74460
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
Comments
Upstream; http-proxy; http-party/node-http-proxy#1666 But the issue is, this library hasn't been touched for 5 years... |
I have the same issue, and it worries me that Azure is not maintaining this library as it seems. |
This comment has been minimized.
This comment has been minimized.
Same issue here. Tried the latest and lts version of nodejs and both gave the deprecation warning. |
This comment has been minimized.
This comment has been minimized.
Using latest version of node and yup, same warning when proxying. |
This API was given a runtime deprecation (i.e. throwing warnings) starting with Node v22: https://nodejs.org/api/deprecations.html#dep0060-util_extend Unfortunately it doesn't seem like NodeJS is providing any information about end-of-life for this API: https://nodejs.org/api/deprecations.html#deprecated-apis Presumably though, this warning will last at least until v24 is made Active LTS, which is scheduled for Oct 28, 2025. If someone from Vercel is reading this: please ensure this is resolved before then – many thanks! 🙏 |
我也是这个问题,但我发现这个库好久都没人维护了,而没找到2.x的版本,有解决方法吗? |
npm install http-proxy-node16 --save-dev "devDependencies": { 这样处理后,没有在提示 api过期了 |
Patching the http-proxy module doesn't work, the patch must be applied to next itself as the dependency is coming from an internal compiled directory next/dist/compiled. |
Same with 'http-proxy-middleware' |
Uh oh!
There was an error while loading. Please reload this page.
Link to the code that reproduces this issue
https://github.com/kuanjiahong/deprecation-warning-app
To Reproduce
Development mode
npm run dev
http://localhost:3000
Deployment - Node.js Server
npm run build
npm run start
http://localhost:3000
Deployment - Docker image
docker build -t nextjs-docker .
docker run -p 3000:3000 nextjs-docker
http://localhost:3000
Current vs. Expected behavior
Current behaviour:
A deprecation warning is shown:
When used node --trace-deprecation to show where the warning was created:
Expected behaviour:
No deprecation warning.
Provide environment information
Which area(s) are affected? (Select all that apply)
Runtime
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local), Other (Deployed)
Additional context
I found these related issue: #72220 #71374
I found that this issue start to occur when using Node version >= 22.
This issue does not occur when using Node v20.
The text was updated successfully, but these errors were encountered: