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

[Bug]: npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. #15236

Open
anomiex opened this issue Aug 3, 2024 · 14 comments

Comments

@anomiex
Copy link

anomiex commented Aug 3, 2024

Version

30.0.0-alpha.5

Steps to reproduce

Starting with an empty project, do the following:

  1. npm install jest@next

Expected behavior

No deprecation warnings.

Actual behavior

npm warn deprecated [email protected]: 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 [email protected]: Glob versions prior to v9 are no longer supported

Additional context

The dependencies come in via babel-plugin-istanbul. See istanbuljs/babel-plugin-istanbul#294 and istanbuljs/babel-plugin-istanbul#295.

Note this is not the same as the direct dependencies fixed by #14509.

Environment

System:
    OS: Linux 6.9 Debian GNU/Linux trixie/sid
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
  Binaries:
    Node: 20.16.0 - /usr/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.8.1 - /usr/bin/npm
    pnpm: 9.6.0 - /usr/local/bin/pnpm
  npmPackages:
    jest: ^30.0.0-alpha.5 => 30.0.0-alpha.5
@xavierraffin
Copy link

Same warning on my dependency tree:

├─┬ [email protected]
│ └─┬ @jest/[email protected]
│   ├─┬ @jest/[email protected]
│   │ └── [email protected]
│   ├─┬ [email protected]
│   │ └── [email protected]
│   └─┬ [email protected]
│     └── [email protected]
├─┬ [email protected]
│ └─┬ @jest/[email protected]
│   └─┬ [email protected]
│     └─┬ [email protected]
│       └── [email protected]

Should switch to [email protected]

@xavierraffin
Copy link

xavierraffin commented Aug 7, 2024

Duplicate of #15173 ? (maybe not exactly)

@anomiex
Copy link
Author

anomiex commented Aug 7, 2024

Not necessarily. #15173 is reporting the warnings in 29.7.0, which were partially fixed by #14509. Same for #15087. This issue is specifically about what remains in 30.0.0-alpha.5 after #14509.

@SimenB
Copy link
Member

SimenB commented Aug 7, 2024

Unfortunately test-exclude has dropped Node 16, so we cannot upgrade in the babel plugin. Might be able to drop the dep, tho?

Copy link

github-actions bot commented Sep 6, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Sep 6, 2024
@anomiex
Copy link
Author

anomiex commented Sep 8, 2024

Issue still exists in jest@next, stale-bot.

@github-actions github-actions bot removed the Stale label Sep 8, 2024
@avifenesh
Copy link

+1

@EnigmaSaikat
Copy link

EnigmaSaikat commented Sep 23, 2024

Quote reply

For inflight not sure for globe (v9 is available and installed manually)

image
for glob 9
glob v9

@soderlundf
Copy link

+1

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Nov 15, 2024
@anomiex
Copy link
Author

anomiex commented Nov 17, 2024

Issue still exists in jest@next, stale-bot.

@github-actions github-actions bot removed the Stale label Nov 17, 2024
@dushmanta05
Copy link

Same issue here, is anyone working on this?

@mhanxchu
Copy link

Are there any workaround or alternatives for this?

@anomiex
Copy link
Author

anomiex commented Nov 30, 2024

As a workaround for this specific issue in jest@next, you could use package manager overrides to use test-exclude v7 in place of the test-exclude v6 that babel-plugin-istanbul depends on. At a quick glance, I see no functional differences between 6.0.0 and 7.0.0, just the updated dependencies (which all still appear to support node 16, FWIW, despite istanbuljs/test-exclude@ad7dfe1 suggesting that deps were the reason for test-exclude requiring node >=18 rather than >=16, which is what is blocking jest and babel-plugin-istanbul from updating to that version officially).

Let's keep this issue focused on jest@next. If you're still using jest 29.7.0, please use #15173 to discuss any additional workarounds needed for that version. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants