-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Deprecation Warning on Installation of packages(inflight@1.0.6, rimraf@3.0.2, glob@7.2.31) #66239
Comments
That's right, the owner of He's recommended to use something else like |
Inflight have more than 37 million weekly downloads on npm and he just deprecate it like that... 😐 The main reason why I hate JS is this "Dependency Hell" |
Can
Glob removed inflight as a dependency in v9 isaacs/node-glob#435 (comment) which has subsequently flowed up to file-entry-cache in later versions. This would also fix warnings: |
19 other packages depend on rimraf, versions vary: ^2.2.8 ( Not sure if this could ever be cleaned up... |
See also #66413 |
A direct dependency of
This being with eslint-plugin-react-hooks 4.6.2, as of today the latest released version. However, if you instead use the
No warnings! (version So hopefully, there should be a release of this which |
I also raised this issue for eslint. |
I'm not sure to follow. Is there a solution to fix this or is it being taken care of? My production builds have been failing for a week now due to that issue. |
It's bad practice but you can temporarily fix the error by forcing a newer version of glob in your "overrides": {
"glob": "9.0.0"
} But this is far from ideal and should be removed once the glob update has flowed upstream to |
@mattkrins @kapsule-studio I think it best to override
|
Do you have any predictions as to when this will be resolved? I create a new project in Next.js version: 14.2.4 and show this warn: npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead |
@Zafkiel45 the deprecated error from |
i also currently facing the same issue.Will react owners resolve it ?? or i should do ? |
npx create-next-app currently installing version 8 of esLint. Current version of eslint is 9.5. Has anyone tried updating eslint to 9.5 to see if this fixes the issue? |
_temporary solution _ "overrides": { |
This comment has been minimized.
This comment has been minimized.
Temporary solution
"overrides": {
"glob": "9.0.0",
"rimraf": "^4.0.0"
}
…On Fri, 19 Jul 2024, 03:42 Nico, ***@***.***> wrote:
Is there a temporary solution?
—
Reply to this email directly, view it on GitHub
<#66239 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXGVDP7RFNGOGVEZKXUEW4LZNBOI3AVCNFSM6AAAAABIK3D5AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXHAYTQMJYGY>
.
You are receiving this because you commented.Message ID: <vercel/next.
***@***.***>
|
Waiting a solution as well |
I'm guessing most of these if not all are maintained by contributors and not any kind of permanent team. I wanna start contributing to opensource and I'm knowledgeable enough to update packages and deps in package-locks, I figured this could be a good way to dip my toes and get started. Would I just need to go to the repos, fork them, make changes and then do a pull request? I know this was pretty random but your comment seems like you're pretty knowledgeable about this stuff so I figured I'd ask |
The question was not for me, but I feel that I can help with your doubt. You can create a fork of the project, and after making your changes, perform a pull request. The repository maintainers will do a code review, and if they decide to accept, then their changes will be merged into the original project timeline. The problem in question, is that some like Eslint, is just outdated in the dependencies of Next.js and some others have been decripped (discontinued projects) |
Cool, thanks for the answer. and I see, yea this is quite messy |
Hi, looking over this thread I don't see any specific actions we can take on our end yet to immediately resolve these dependencies in the tree as we don't control ESLint or the similar dependencies that are causing the nested dependencies to be pulled in. We are working towards ESLint v9 support although there is need for the related rules/plugins to catch up for full support/migration there as well. I'm gonna close this specific item out as unactionable on our end but follow the ESLint v9 threads for tracking on that front! #64409 |
…mory leak warning by forcing `rimraf` update. This was an actively developing issue until yesterday, see here: vercel/next.js#66239 Also fixes `rimraf` and `glob` deprecation warnings (both of these are probably due to having to migrate from `inflight` lol)
…ed `inflight` dependancy (#35) * Remove `inflight@1.0.6` dependency due to deprecation and supposed memory leak warning by forcing `rimraf` update. This was an actively developing issue until yesterday, see here: vercel/next.js#66239 Also fixes `rimraf` and `glob` deprecation warnings (both of these are probably due to having to migrate from `inflight` lol) * Updated package name, we're still 0.0.0 indev though
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/ananduremanan/next.js_inflight_deprecation_warning
To Reproduce
Running
npx create-next-app@latest
and while installing packages.Current vs. Expected behavior
I had the same experience with sveltekit as well, on installing I got the following warnings
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
the reason why I raised this as bug is because of the text
leaks memory
in the warning.Provide environment information
Which area(s) are affected? (Select all that apply)
create-next-app
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I ran the following
I think the error is coming from the
glob
package.The text was updated successfully, but these errors were encountered: