-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Warning: pattern is trying to unpack in the same destination #4812
Comments
I'm getting a similar error. Related to esprima-fb. |
I'm running into this when trying to use |
I encountered a similar error:
This seems to be an issue with ++<<<<<<< HEAD
+strip-bom-stream@^2.0.0:
++=======
++strip-bom@3.0.0, strip-bom@^3.0.0:
++ version "3.0.0"
++ resolved "https://example.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
++
++strip-bom@^2.0.0:
++>>>>>>> origin/master
+ version "2.0.0"
+ resolved "https://example.com/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz#f87db5ef2613f6968aa545abfe1ec728b6a829ca"
+ dependencies:
+ first-chunk-stream "^2.0.0"
+ strip-bom "^2.0.0"
+
++<<<<<<< HEAD
strip-bom@3.0.0, strip-bom@^3.0.0:
version "3.0.0"
resolved "https://example.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
@@@ -8649,6 -3978,6 +9384,8 @@@ strip-bom@^2.0.0
dependencies:
is-utf8 "^0.2.0"
++=======
++>>>>>>> origin/master Yarn resolved the conflicts
into a lockfile that doesn't work: - strip-bom-stream@^2.0.0:
++strip-bom-stream@^2.0.0, strip-bom@^2.0.0:
+ version "2.0.0"
+ resolved "https://example.com/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz#f87db5ef2613f6968aa545abfe1ec728b6a829ca"
+ dependencies:
+ first-chunk-stream "^2.0.0"
+ strip-bom "^2.0.0"
+
strip-bom@3.0.0, strip-bom@^3.0.0:
version "3.0.0"
resolved "https://example.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
--strip-bom@^2.0.0:
-- version "2.0.0"
-- resolved "https://example.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e"
-- dependencies:
-- is-utf8 "^0.2.0"
-- My issue seems to be the same as #4737 |
THANK YOU @also !!
I had been getting a lot of merge conflicts, and saw that when I simply Now, I do |
Also happens when simply adding
which was fine. Then added
I think it installed correctly, but the warning is fairly menacing. This is on MacOS 10.12.6, Node v8.10.0. |
Getting this warning when doing
|
Got this warning when initialize a Adding Jest...
yarn add v1.6.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
warning Pattern ["babel-preset-react-native@4.0.0"] is trying to unpack in the same destination "/Users/ntnyq/Library/Caches/Yarn/v1/npm-babel-preset-react-native-4.0.0-3df80dd33a453888cdd33bdb87224d17a5d73959" as pattern ["babel-preset-react-native@^4.0.0"]. This could result in non-deterministic behavior, skipping.
[#####################################################################] 814/815 Pattern ["babel-preset-react-native@4.0.0"] is trying to unpack in the same dest[3/4] 🔗 Linking dependencies...
warning "react-native > eslint-plugin-react-native@3.2.1" has unmet peer dependency "eslint@^3.17.0 || ^4.0.0".
warning " > babel-jest@23.0.0" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
warning " > babel-jest@23.0.0" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
[4/4] 📃 Building fresh packages...
success Saved lockfile.
success Saved 132 new dependencies. And the app works fine. This is on Mac OS 10.13.4, Node v8.9.4, react-native-cli v2.0.1. |
I have a workspace/monorepo with multiple packages depending on a While probably they are getting hoisted and cached I had this warning due to link path conflict. Then I added: "resolutions": {
"**/@sub/package-name": "link:./@sub/package-path",
}, to the root Although not sure if this will cause some errors in long-term yet. PS: Unlike the main issue that is created, I didn't have any issues with external packages like |
I had the same issue happen which matched @also's description of the problem. I ran |
Same error. Steps:
|
This problem has been solved in my project since I update my dependencies.
node version: 8.10.0 |
Same error when try to global add aws-sdk yarn global add aws-sdk
|
Any update on this? I have latest create-react-app and when trying to add prop-types I get the same error |
I've been seeing this on my large production app for a while, but I just got it again with a brand new project, with this exact command sequence:
|
SOLVED: |
Here's another example - don't know if it's necessary due to the lack of response. Given this simplest package.json:
Now execute
The problem seems AFAICT, that eslint depends on debug@^4.0.1, which is actually resolved by 4.1.1. Here's the part of yarn.lock;
It seems that this subdependency is not correctly resolved when adding the debug package (latest version currently being 4.1.1) Any chance to get this fixed? It's rather irritating. |
Also breaking for me. |
I too am getting the same issue. Any one has managed to fix this?
|
So for my case, we use npm aliases to manage two versions of various packages, specifically react-router 3 and react router 4. This also means that we manage two versions of history. This resulted in To "solve" our issue, I manually went into the |
2.5 years later, and still nothing. |
@Nvveen you can try using yarn resolutions. https://classic.yarnpkg.com/en/docs/selective-version-resolutions/ Like I said above, I solved the issue initially by doing it manually but I ended up using resolutions to fix it for realsies. Shortly after, the issue was resolved entirely since our team ended up using workspaces to organize our modules. Part of our issue was due to supporting a legacy version of our codebase while also building a v2 that shared the same modules. This led to two different versions of react router attempting to use the same version of history. Anyway, hopefully you find luck with yarn resolutions. |
I was getting But thank to @hankthewhale I don't have the
EditIt is the third time I end up here to find a solution for this problem... but just in the hope to help google direct me to yarnpkg.com web site next time I decided to post the link as part of the problem (bug) description: Selective version resolutionsThe solution is not perfect but it's called Selective version resolutions Here what they say on yarnpkg.com:
{
"name": "project",
"version": "1.0.0",
"dependencies": {
"left-pad": "1.0.0",
"c": "file:../c-1",
"d2": "file:../d2-1"
},
"resolutions": {
"d2/left-pad": "1.1.1",
"c/**/left-pad": "^1.1.2"
}
} |
This worked:
Previously, when running:
...the result was:
Using...
Hopefully it helps someone |
The solution for me was :
which stopped my |
Closing as fixed in v2 |
Wanted to share what my simple solution was. I had an extraneous space in my import:
|
Locally I get the following > warning Pattern ["@babel/preset-env@^7.16.8"] is trying to unpack in > the same destination > "/Users/jakob/Library/Caches/Yarn/v6/npm-@babel-preset-env-7.16.8-e682fa0bcd1cf49621d64a8956318ddfb9a05af9-integrity/node_modules/@babel/preset-env" > as pattern ["@babel/preset-env@^7.15.6"]. This could result in > non-deterministic behavior, skipping. According to yarnpkg/yarn#4812 this might be caused by Yarn failing to correct a merge conflict in yarn.lock, and we have seen some of those.
Deleting the |
Avoids minification Avoids issue with yarn and npm aliases: - isaacs/jackspeak#5 (comment) - yarnpkg/yarn#4812
Do you want to request a feature or report a bug?
bug
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
No warning.
Please mention your node.js, yarn and operating system version.
Fedora 26 (Workstation Edition)
The text was updated successfully, but these errors were encountered: