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

jest-resolve imports IModuleMap, removed in v27.0.5 of jest-haste-map #11612

Closed
chigozienri opened this issue Jun 25, 2021 · 4 comments · Fixed by #11759
Closed

jest-resolve imports IModuleMap, removed in v27.0.5 of jest-haste-map #11612

chigozienri opened this issue Jun 25, 2021 · 4 comments · Fixed by #11759

Comments

@chigozienri
Copy link

🐛 Bug Report

Version 27.0.5 of jest-haste-map removes IModuleMap, which is used by jest-resolve

$ tsc
node_modules/jest-resolve/build/resolver.d.ts:8:15 - error TS2724: '"../../jest-haste-map/build"' has no exported member named 'IModuleMap'. Did you mean 'ModuleMap'?

8 import type { IModuleMap } from 'jest-haste-map';
                ~~~~~~~~~~

  node_modules/jest-haste-map/build/index.d.ts:180:12
    180     static ModuleMap: typeof HasteModuleMap;
                   ~~~~~~~~~
    'ModuleMap' is declared here.


Found 1 error.

To Reproduce

Steps to reproduce the behavior:
Build a project with jest-resolve in the dependency tree

Expected behavior

Builds without error (as with v <27.0.5)

Link to repl or repo (highly encouraged)

envinfo

  System:
    OS: macOS 10.15.7
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 12.15.0 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.13.4 - /usr/local/bin/npm
  npmPackages:
    jest: ^27.0.5 => 27.0.5 
@gabrieledarrigo
Copy link

We have the same issue; something that we can do to mitigate?

@aaschlote
Copy link

do we have some solution? I'm getting it too

@SimenB
Copy link
Member

SimenB commented Aug 17, 2021

to solve it locally, just delete the jest-haste-map entry from your lockfile. Hopefully that'll pull in the updated version 👍

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants