Skip to content
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

yarn config cannot be used to enable workspaces-experimental inside of a project which defines workspaces. #7089

Open
rDr4g0n opened this issue Mar 7, 2019 · 1 comment

Comments

@rDr4g0n
Copy link

rDr4g0n commented Mar 7, 2019

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

What is the current behavior?
Running most yarn commands in a directory with a package.json that defines workspaces will fail with error The workspace feature is currently experimental and needs to be manually enabled - please add "workspaces-experimental true" to your .yarnrc file..

This is fine! But when this happens, you may want to enable workspaces using yarn config set workspaces-experimental true, however this command (and many others) fails with the same error.

My use case here is a Docker container which builds my application. I need to be succinct as possible with my RUN commands, and it makes sense to be able to enable the feature it needs right before performing the various build tasks.

Current workaround is yarn --cwd / config set workspaces-experimental true

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

  • Disable workspaces: yarn config set workspaces-experimental false
  • cd into any project which has a package.json that defines some workspaces
  • try various yarn commands, eg yarn --help, yarn config list, and the most salient one yarn config set workspaces-experimental true

What is the expected behavior?
Primarily, yarn config should work so that workspaces can be enabled in that way, but other yarn commands should work as well.

Please mention your node.js, yarn and operating system version.
Ubuntu 16.04
node 8.15.0
yarn 1.13.0

Thanks yall :D

@rDr4g0n rDr4g0n changed the title yarn config cannot be used to enable experimental-workspaces inside of a project which defines workspaces. yarn config cannot be used to enable workspaces-experimental inside of a project which defines workspaces. Mar 7, 2019
@anshckr
Copy link

anshckr commented Dec 10, 2020

It will add workspaces-experimental true to the .yarnrc file in your OS home folder, you will have to manually set it true there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants