-
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
Unable to create project in similar destination as another project due to projectName being affected by directory #16308
Comments
This is also a problem using Nx 15.8.7:
I don't know why the error is output twice. |
Any progress on this? |
Hi ! I have pretty much the same error on my side but in .netcore. My issue is when I try to create another .net core app with the plugin @nx-dotnet/core, it gives me this error :
The thing is this app doesn't exist before and my other app doesn't have the same name. |
Any progress on this? My proposed solution would avoid the problem in #17430 as well. |
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Running the following generator...
...gives errors...:
This is caused by the libraryGenerator and the remote generator (and many others like the workspace move generator) changes the projectName in part based on the directory.
I know this is intended behaviour but it causes problems and I think it is inexplicit that the name is not the name you supply to the generator. After you generate/move a project, you have to guess the project name.
I propose that this behaviour is changed. To avoid a breaking change you could add an option to keep the legacy behaviour or introduce a migration to change the code.
Expected Behavior
The above generator works. Or introduce the changed behaviour I mentioned earlier.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Additional Information
No response
The text was updated successfully, but these errors were encountered: