-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[NX 20] Problems with empty workspace #28322
Comments
Same problem on my side. I used following commands to create a new workspace: Steps to reproduce: Console Report: ✔ Which stylesheet format would you like to use? · @emotion/styled NX The "@nx/react:application" generator doesn't yet support the existing TypeScript setup We're working hard to support the existing TypeScript setup with the "@nx/react:application" generator. We'll soon release a new version of Nx with support for it. |
Same problem when using @nx/angular. |
Also getting a problem that might be related after going to NX 20
I assumed it's related because in this function
workspace is undefined |
same problem when adding |
Thanks for reporting this! The new TS behavior is enabled by default when using the This doesn't mean you have to be blocked. As mentioned, this is only the behavior when using the |
same issue when we do an migration command `
Your repository uses a higher version of Nx (18.3.3) than your global CLI version (16.10.0) Failed to install the latest version of the migration script. Using the current version. NX The migrate command failed. NX Command failed: npm install @nrwl/web@20.0.0 npm error code ETARGET |
@linktogo that's unrelated. There's no v20 for To unblock yourself, you can swap it with |
@leosvelperez Hi buddy... Thanks for the reply... Considering that right now, most of the plugins are affected, can you share a roadmap about how that migration will be handled? Maybe a compatibility matrix can be a good option to help people to decide which preset is better for their projects |
Thank you for your the explanation. What would be the correct way to disable the |
Hi @gperdomor, thanks for reporting this issue. As @leosvelperez mentioned, using
The stacks, such as Angular, React, Vue, Node, continue to function like they did prior to v20, and any existing "integrated" workspaces will continue to function the same way in the future. If one of these stacks match what you are using, it is recommended for you to choose them over Here's a longer explanation of the error. Previous to v20, when you chose The As for the timeline for compatibility for other stacks/plugins, we're actively working on that now. We're targeting v20.1 to bring full compatibility, which is around late October/early November. |
If the workspace is new, we recommend you re-create it using
Again, if you can we recommend that you use |
@madelk This issue in unrelated, and seems like the
|
Thank you @jaysoo for the clarification... I'm planning to build a component library with Lit so I think I can continue with v20, and create the storybook later when v20.1 is available 👍🏻 |
How can you guys push a new update and have everything stop working like that? I understand if it happens with third-party plugins, but having this happen with plugins maintained by the NX team itself is unacceptable. |
Is there plans to offer a migration tool when support is added to |
With v20.1 and nx/angular the issue still persists. |
@vzsolt1981 yes, I saw PR for react and plugins packages but are not merged... I need the last one :(... I know that the folks are working hard to fix all the compatibility issues but it's worth to say that the release process of this 20 version have been a little chaotic... In any case let's hope that everything can be solved as soon as posible 🙏🏻 |
The plugins PR has been merged, and the React one should be landing this week. After that will be Angular, Vue, and Node. |
This doesn't seem quick and easy. How can I know which plugins support which version? And which monorepo downgrade strategy should I choose? It would be great to have documentation for this. As I can see in the matrix of versions that's not full true https://nx.dev/nx-api/angular/documents/angular-nx-version-matrix |
Also the matrix I think is for Angular at the moment only. Such a matrix can benefit other plugins also. I am looking for the 'Nuxt' versions, currently not able to create new workspace |
I tired to create a new project and is failing every time I use angular What happened to this tool? |
@adlion please read this comment… #28322 (comment) Angular plugin is not updated to support the new typescript solution/workspace, you need to use the old style in order to use angular the plugin |
… setup (#28808) This PR updates app and lib generators in the following packages such that they will generate files with the TS solution setup if it is detected. - `@nx/react` - `@nx/next` - `@nx/remix` - `@nx/expo` - `@nx/react-native` React apps and libs will be linked using npm/pnpm/yarn/bun workspaces feature rather than through tsconfig paths. This means that local aliases like `@/` will work with Next.js and Remix apps. Note: This will be behind `--workspaces` flag when using `npx create-nx-workspace` and choosing React stack. If you use the None/TS stack then adding plugins like `nx add @nx/react` then generating apps, it will automatically pick up the new TS solution setup. <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior React generators are not compatible with TS solution setup (i.e. workspaces + TS project references). ## Expected Behavior React generators work with new TS solution setup (Plain, Next.js, Remix, Expo, React Native). ## Related Issue(s) #28322 --------- Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com> Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
With #28808 merged, will the next release fix this? |
Other solution try with v19.5.6. |
This still occurs on the latest version 20.2.2 with
Seem to be fixed for |
I hope they fix it for |
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
andnpx nx add @nx/react
Basically all commands return mostly the same:
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 errorExpected 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
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
Additional Information
No response
The text was updated successfully, but these errors were encountered: