Description
Current Behavior
Hi everyone... First things first... Congrats for the new release 🥳
Im creating this issue because I'm trying to play with Nx 20.0.0-rc.0 and I got several problems running npx nx add @nx/nest
, npx nx add @nx/next
and npx nx add @nx/react
Basically all commands return mostly the same:
npx nx add @nx/react
✔ Installing @nx/react@20.0.0-rc.0...
NX Generating @nx/react:init
NX The "@nx/react" plugin doesn't yet support the existing TypeScript setup
We're working hard to support the existing TypeScript setup with the "@nx/react" plugin. We'll soon release a new version of Nx with support for it.
✖ Initializing @nx/react...
Error: Command failed: npx nx g @nx/react:init --keepExistingVersions --updatePackageScripts
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
...
...
...
NX Failed to initialize @nx/react. Please check the error above for more details.
Creating Plugins
Also I ran npx nx add @nx/plugin
which not throws errors during the install, but when I tried to create a new plugin I got the same error
Executing task: npx nx generate @nx/plugin:plugin --directory=plugin/my-plugin --no-interactive --dry-run
NX Generating @nx/plugin:plugin
NX The "@nx/plugin:plugin" generator doesn't yet support the existing TypeScript setup
We're working hard to support the existing TypeScript setup with the "@nx/plugin:plugin" generator. We'll soon release a new version of Nx with support for it.
Expected Behavior
Considering that not all plugins are supported with the new typescript plugin, maybe the plugin should not be included as default 🤔
Also maybe it's a good idea include in the docs which plugins/executors/generators works with the new preset
GitHub Repo
No response
Steps to Reproduce
- Create empty workspace
- Execute
npx nx add @nx/next
Nx Report
NX Report complete - copy this into the issue template
Node : 22.9.0
OS : darwin-x64
Native Target : x86_64-macos
npm : 10.8.3
nx (global) : 19.8.3
nx : 20.0.0-rc.0
@nx/js : 20.0.0-rc.0
@nx/jest : 20.0.0-rc.0
@nx/eslint : 20.0.0-rc.0
@nx/workspace : 20.0.0-rc.0
@nx/devkit : 20.0.0-rc.0
@nx/nest : 20.0.0-rc.0
@nx/next : 20.0.0-rc.0
@nx/node : 20.0.0-rc.0
@nx/plugin : 20.0.0-rc.0
@nx/react : 20.0.0-rc.0
@nx/web : 20.0.0-rc.0
@nx/webpack : 20.0.0-rc.0
typescript : 5.5.4
Registered Plugins:
@nx/js/typescript
Failure Logs
No response
Package Manager Version
npm 10.8.3
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response