Open
Description
Current Behavior
When trying to use a generator via the Nx Console UI, the VSCode integrated terminal shows an error and the generator doesn't run
Expected Behavior
When using -pm=yarn
, latest Yarn should be used and the user should be guided into setting it up if needed.
Plus, Nx Console should work as expected
Steps to Reproduce
- create a new Nx workspace with
-pm=yarn
- move to latest Yarn
- add
@nx/react
- try to use the app generator of nx/react via the UI
Failure Logs / Images / Videos
error This project's package.json defines "packageManager": "[email protected]". However the current global version of Yarn is 1.22.22.
Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and 14.19.
Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.
Environment
- Nx Console version: 18.42.1
- VSCode version: 1.98.2
NX Report complete - copy this into the issue template
Node : 22.14.0
OS : darwin-arm64
Native Target : aarch64-macos
yarn : 4.7.0
nx : 20.6.2
@nx/js : 20.6.2
@nx/eslint : 20.6.2
@nx/workspace : 20.6.2
@nx/devkit : 20.6.2
@nx/module-federation : 20.6.2
@nx/react : 20.6.2
@nx/web : 20.6.2
typescript : 5.7.3
---------------------------------------
Cache Usage: 0.00 B / 92.64 GB