-
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
Yarn add issues with workspaces and eslint #8405
Comments
You Sir, are a lifesaver! Props to you! |
Closing as fixed in v2 |
Needed to downgrade because of a bug in 1.22.10 where it was unable to install dependencies into workspaces individually. See details here: yarnpkg/yarn#8405 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Needed to downgrade because of a bug in 1.22.10 where it was unable to install dependencies into workspaces individually. See details here: yarnpkg/yarn#8405 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Needed to downgrade because of a bug in 1.22.10 where it was unable to install dependencies into workspaces individually. See details here: yarnpkg/yarn#8405 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com> Signed-off-by: hxlaf <xuhan@lafayette.edu>
Awesome, you rock man!! |
Nice!!! |
Needed to downgrade because of a bug in 1.22.10 where it was unable to install dependencies into workspaces individually. See details here: yarnpkg/yarn#8405 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
It's 2022, and an error like this happened again. Command
|
Thank you very much. You saved my life! |
Downgrading the yarn version could be risky as there are bug fixes in each new release. However, I found an alternative that solved the issue: |
It solved But my eslint no longer work :( |
no one uses v2 |
… exist for "eslint"' error yarnpkg/yarn#8405
… exist for "eslint"' error yarnpkg/yarn#8405
… exist for "eslint"' error yarnpkg/yarn#8405
… exist for "eslint"' error yarnpkg/yarn#8405
… exist for "eslint"' error yarnpkg/yarn#8405
… exist for "eslint"' error yarnpkg/yarn#8405
… exist for "eslint"' error yarnpkg/yarn#8405
Bug description
Using latest version (1.22.10) and workspaces, when typing yarn add package in any workspace, it throws the following error:
error An unexpected error occurred: "expected workspace package to exist for \"eslint\"".
Setting yarn policies to 1.19.0 solved the problem.
Command
Environment
The text was updated successfully, but these errors were encountered: