You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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.
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 consolechange wrkspace item
.To replicate this issue, you can install a new nx workspace using
yarn create nx-workspace --preset=npm
command and then doyarn set version berry
, addnodeLinker: pnp
in .yarnrc.yml and doyarn 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)
The text was updated successfully, but these errors were encountered: