yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Yarn is not able to handle circular latest dependencies

Open hjkcai opened this issue 5 years ago • 4 comments

Do you want to request a feature or report a bug? Bug

What is the current behavior? I have two packages "a" and "b". "a" depends on "b@latest" and "b" depends on "a@latest". Running yarn add a or yarn add b results in a infinite loop.

If the current behavior is a bug, please provide the steps to reproduce. Setup a private repository with two packages described as above.

What is the expected behavior? Packages are installed correctly

Please mention your node.js, yarn and operating system version. Node.js 10.6.0 Yarn 1.9.4 macOS 10.12.4

hjkcai avatar Aug 20 '18 03:08 hjkcai

Up. Same experience here. @bluejay/collection depends on @bluejay/utils and vice versa. This issue has been brought to me by one of Bluejay's users as they are using yarn. We don't have such an issue with npm.

Reproduction: 'yarn add @bluejay/collection'

SylvainEstevez avatar Oct 10 '18 11:10 SylvainEstevez

same problem here... I have a lot of internal dependencies that depends each other and I´m not able to install or upgrade my project

luiguild avatar Nov 09 '18 02:11 luiguild

Oh gosh... 2k20 and we are still here... Congrats Facebook! :)

luiguild avatar Jan 29 '20 19:01 luiguild

Hello from 2022, this is still a problem :upside_down_face:

pcfreak30 avatar Aug 19 '22 19:08 pcfreak30