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 move a library using nx g @nrwl/workspace:move #7642
Comments
Thanks for reporting this! Could you provide a minimal repo with a reproduction? I tried to reproduce it with the above information and I was not able to do so. |
I am trying to recreate in fresh new nx project but am unable to do so. Will close this ticket. However, I am completely unable to move a project in our current monorepo. I always get this error. If there is a way for me to debug this, I would love feedback. Cheers |
Sorry to hear you're facing those issues. You can first run the generator with On a side note, this |
Thank you. Added verbose and got this:
Does this give you an insight into where the issue might be? |
It looks like you have a project in your In the meantime, you can change the projects with those paths to be just an empty string, it'll behave the same but the move generator should work with it. Out of curiosity, what's the use case of having a project root be the workspace root? |
I have no idea. This is what my angular.json workspace looks like at the bottom of the file. What should it be??
|
You can just change |
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
I have a directory structure like this:
I would like to move "ui-marketing-slug" to extranet.
Expected Behavior
Should copy the library to the desired destination
Steps to Reproduce
Trying to move it like this:
nx g @nrwl/workspace:move --project extranet-booking-engine-ui-marketing-slug extranet/ui-marketing-slug
Gives me the error:
path should be a
path.relative()d string, but got "."
Trying to move it like this:
nx g @nrwl/workspace:move --project extranet-booking-engine-ui-marketing-slug extranet
Gives me the error:
Invalid destination: [extranet] - Path is not empty.
Environment
The text was updated successfully, but these errors were encountered: