Yarn: Workspaces nohoist not working with --link-duplicates

Created on 27 Feb 2018  路  2Comments  路  Source: yarnpkg/yarn

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

Bug

What is the current behavior?

Yarn doesn't install dependencies.

If the current behavior is a bug, please provide the steps to reproduce.

I've got a bug in our private repo and tried to reproduce it in a new repo. I got a similar result but not exactly the same. The outcome was the same that yarn wasn't able to install the dependencies.
I think the root of the problem is the same.

In both cases, I am using the new nohoist feature and the --link-duplicates flag.

Reproduction / Log: Just clone the repo and run yarn install --link-duplicates

The inital bug I tried to reproduce is:

Error: ENOENT: no such file or directory, lstat '/Users/konstantin/Development/frontend/projects/atoms/node_modules/@monorepo/styling/node_modules/jest'

What is the expected behavior?

Yarn should link all duplicate dependencies in a workspace with nohoist enabled.

Please mention your node.js, yarn and operating system version.

Node: 8.6.0
Yarn: 1.5.1
OS: MacOS High Sierra 10.13.2

triaged

Most helpful comment

it's indeed a problem with the combination of nohoist + link-duplicates. I can reproduce this error. Will dig deeper to see how we can fix it.

All 2 comments

I've posted the error log of the inital bug here: https://gist.github.com/k15a/6ca1a7582b612cb1bbab2883e54862a6

it's indeed a problem with the combination of nohoist + link-duplicates. I can reproduce this error. Will dig deeper to see how we can fix it.

Was this page helpful?
0 / 5 - 0 ratings