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

I have the same error message for my workspace. I use yarn version 2 (berry) for my package manager. Yarn is configured to use plug and play and zero install mode and thus is not using node_modules but .yarn/cache to store the insalled packages. yarn nx -version is showing the right nx version from my workspace, and the **nx cli works from terminal** but the nx console extension is looking for node_modules folder. The current workspace listed in Nx console change wrkspace item. #1164

Closed
irmanfauzi654 opened this issue Oct 23, 2021 · 1 comment

Comments

@irmanfauzi654
Copy link

I have the same error message for my workspace. I use yarn version 2 (berry) for my package manager. Yarn is configured to use plug and play and zero install mode and thus is not using node_modules but .yarn/cache to store the insalled packages. yarn nx -version is showing the right nx version from my workspace, and the nx cli works from terminal but the nx console extension is looking for node_modules folder. The current workspace listed in Nx console change wrkspace item.

To replicate this issue, you can install a new nx workspace using yarn create nx-workspace --preset=npm command and then do yarn set version berry, add nodeLinker: pnp in .yarnrc.yml and do yarn install. It will install yarn 2 locally and migrate all packages and scripts in node_modules into .yarn/cache folder.

Considering this is the future of yarn and the NX cli already works, NX console should be updated to support this.

Originally posted by @awidjaja in #1159 (comment)

@Cammisuli
Copy link
Member

I feel like there's a mix of messages here, but please comment in the original issue. It looks like this issue was created with the reply as the title.

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