-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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-haste-map: Haste module naming collision #8114
Comments
Related issue with same error message: I have three different packages that all require a specific version of same dependency, but those versions are all different. This situation means I have three different versions installed in node-modules. Is there a way to exclude two of the versions from Jest? If not, is there a solution to this issue? |
Peer dependency warning is annoying, but doesn't hurt. Tracked in #8107 Jest doesn't come with a haste implementation, so this is not the correct repo for that. Duplicated deps should be handles by your package manager (npm or yarn) |
Thank you. What is haste anyway? |
Haste is Facebook's custom module system, but we still use |
So you're saying I should completely ignore the warnings (which is what #8107 is about, I guess)? |
Sorry, I was just answering to the question in general without having looked at your issue. Not sure what the root cause of these warnings is, but the quick way to get rid of them is probably |
This comment has been minimized.
This comment has been minimized.
jeysal |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
in jest.config.js or jest.base.config.js |
For me jest even looks outside of the
Adding this line |
Yep, quite simple. 😄 A tarball is downloaded (as part of a test) to a |
If the nodenv tarball (as downloaded by the tool-cache) lives in tmp/ along with the "cached" version, then jest's haste-map nonsense will find duplicate package names and throw a warning. (Despite these packages never being required!?!?) Option: configure "modulePathIgnorePatterns": ["/tmp"] in package.json Or: move the temp download cache out of the project jestjs/jest#8114
If the nodenv tarball (as downloaded by the tool-cache) lives in tmp/ along with the "cached" version, then jest's haste-map nonsense will find duplicate package names and throw a warning. (Despite these packages never being required!?!?) Option: configure "modulePathIgnorePatterns": ["/tmp"] in package.json Or: move the temp download cache out of the project jestjs/jest#8114
If the nodenv tarball (as downloaded by the tool-cache) lives in tmp/ along with the "cached" version, then jest's haste-map nonsense will find duplicate package names and throw a warning. (Despite these packages never being required!?!?) Option: configure "modulePathIgnorePatterns": ["/tmp"] in package.json Or: move the temp download cache out of the project jestjs/jest#8114
If the nodenv tarball (as downloaded by the tool-cache) lives in tmp/ along with the "cached" version, then jest's haste-map nonsense will find duplicate package names and throw a warning. (Despite these packages never being required!?!?) Option: configure "modulePathIgnorePatterns": ["/tmp"] in package.json Or: move the temp download cache out of the project jestjs/jest#8114
in jest configuration (jesst.config or in package.json) |
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. |
🐛 Bug Report
In https://github.com/vega/vega-embed, I get this warning
When I install these dependencies, I get
I don't expect to see these warnings.
Run
npx envinfo --preset jest
System: OS: macOS 10.14.3 CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz Binaries: Node: 11.11.0 - /usr/local/bin/node Yarn: 1.13.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm npmPackages: jest: ^24.4.0 => 24.4.0
The text was updated successfully, but these errors were encountered: