-
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
resolutions doesn't work with deps that have '/' in their name #4874
Comments
Any progress on this one? I'm facing the same issue. Resolutions with an
EDIT: I just realized that Versions: |
@arcanis Hi, is there any progress on this? I'm facing a similar issue with a nested dependency. |
It's possible I'm misunderstanding how to utilize these. My current setup is I have a root workspace with these children inside:
Project B package.json (which is the application having issues):
The @organization/UILibrary (which is outside the workspace) package.json looks like so:
Unfortunately, even though Project B has no dependency on Project A, when @organization/UILibrary is pulled into Project B it gets backbone.marionette version 2.4.1 for it's requires (whereas the requires local to Project B get 1.8.8). My attempt to use resolutions is updating Project B package.json to this:
Any ideas? I can add more details if people need them, and if desired I can open a different issue (sorry if I'm hijacking this one, but it seemed relevant). |
It's 2020, is there any update on this? Seems like an edge-case that should've been covered. I'm running into an issue with a type definition package, and trying to do something like this:
I was hoping to use yarn resolutions and not have to use declaration merging. |
I think I was able to get this to work by specifying the resolution like this: "resolutions": {
"**/@types/PackageA/**/@types/PackageB": "x.y.z"
}, |
That's a huge issue, @types/react can't be installed properly |
Sorry for the bother, but I think I may still need to ping again. It's important for those who need to use resolutions. |
I'm happy to work on this. But I'm not familiar enough to the codebase. @arcanis Would you mind give some suggestions? |
@arcanis Sorry, but I think I need to ping it too. Is there any progress on this? I'm too not familiar enough to the codebase, but how could I help? |
Up 😕 |
Afaik this got fixed in all of the Yarn 2+ releases. |
I am facing a similar issue - package @storybook/ui has a dependency on @types/markdown-to-jsx and I intend to use higher version of @types/markdown-to-jsx using resolutions. In which version of yarn is this resolved? Also, can someone suggest a workaround to achieve this? Versions used: |
Any chance the fix could get backported to yarn 1? Upgrading to yarn 2 is not feasible for a lot of people |
No, we don't do backport over two majors (the last release is currently 3.0). However I suspect the migration should be fairly simple if you follow our step-by-step guide. If not, post where you're blocked on our Discord and we'll try to help. Edit 2022/01/26: Oh hey, visitors from Twitter. Turns out Adam is essentially talking shit and has no idea about adoption, compatibility, feature set, outside of what he sees his Twitter feed. Seriously, tech twitter bros are so embarrassing. |
i tried upgrading to 2 and 3 and have been in a world of pain. like.. yarn install doesn't work for me at all in 2 (getting "cannot apply hunk" errors), and it was throwing random error when lock file was removed (i had to |
Did this get backported in the end, though? I am using yarn 1 and it seems to work fine for me. Set up: Yarn 1.22.19
Works like a charm, even though the discussion here leads me to believe that it shouldn't be. Output of
|
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Resolutions for packages that use namespacing aren't respected.
example:
resulting yarn.lock still declares an older version of
@types/react
for@types/storybook__react
Please mention your node.js, yarn and operating system version.
node: v6.9.1
yarn: 1.3.2
Ubuntu 16.04.3 LTS
The text was updated successfully, but these errors were encountered: