-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Case Study] Something wrong with workspaces #654
Comments
Note that I strongly prefer Sherlock reproduction cases to git repos. Git repos require me to create temporary directories on my local computer, review the dependencies + lockfile + cache, run an install, then figure out whether the errors I see are the one you talk about. By contrast, running a Sherlock repro is literally one command line. Additionally, adding the exact error message in your original message would be helpful, because most of the time I can have a pretty good idea what might be wrong just be reading them. |
@arcanis |
Without workspace everything works perfectly.
|
@arcanis Could you tell me, pls, how I can create folders and place files with Sherlock? I can't find any documentation. |
It's a regular Node environment, so you can use all the Fwiw the error is right: |
But why this error is occured only when workspace is used? |
Because in the "no workspaces" setup the top-level has a dependencies on In fact, if you were to completely disable the fallback using |
Seems, that I understood. |
No, there is only a single top-level package, even if you use workspaces. The right fix is to use |
I prepared configuration, that easily allows to reporoduce the problem.
Could you, please, clone this repo
git@github.com:zdm/yarn-workspace.git
and run this commandyarn lint
from./without-workspace/package
and from./with-workspace/package
directories.Packages are 100% identical, only single difference is that one uses workspace and other - not.
In case with workspace - package resolve error is occurred.
I don't know is it a bug or I just setup workspace incorrectly. Could you, please, make it clear?
Thank you.
The text was updated successfully, but these errors were encountered: