question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@nrwl/workspace:move schematics yields error: 'This should never happen.' 🤪

See original GitHub issue

Expected Behavior

The command below either executes as expected, or yields a proper error message that it can’t do what I ask it to.

$ nx g @nrwl/workspace:move --projectName web-layout --destination web/layout/console

Current Behavior

It fails, telling me that that should never happen. This message makes me feel both special and clumsy 😉

$ nx g @nrwl/workspace:move --projectName web-layout --destination web/layout/console
This should never happen. Path: "/libs/web/layout".

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

  1. yarn create nx-workspace my-app
  2. cd my-app
  3. yarn add -D @nrwl/angular
  4. nx g @nrwl/angular:lib layout --directory web
  5. nx g @nrwl/workspace:move --projectName web-layout --destination web/layout/console

Other

The workaround is to do the move in 2 steps:

$ nx g @nrwl/workspace:move --projectName web-layout --destination web/layout-console
$ nx g @nrwl/workspace:move --projectName web-layout-console --destination web/layout/console

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
beemancommented, Feb 24, 2021

I think it would be great if this could be addressed at some point. Not urgent, be definitely a nice addition 😃

1reaction
github-actions[bot]commented, Feb 10, 2021

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. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolving Schematic Errors | Learn Altium Designer
This error is due to the use of an outdated component in your project. It usually happens when the schematic was developed some...
Read more >
typescript - Angular schematics error when using external ...
When i execute the command i get the error. Data path "" must have required property 'version'. So i have to add --version="x"...
Read more >
Error Checking Schematics - Technical Articles
The foundation of an error-free schematic is accurate symbols. ... The first type of “No Connect” are pins which should never be connected....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found