Migration failure: Project '@nrwl/workspace' could not be found in workspace.
See original GitHub issueExpected Behavior
I would expect the migrate command to migrate my workspace from 8.4.10 to 8.5.0.
Current Behavior
$ nx migrate @nrwl/workspace
Project '@nrwl/workspace' could not be found in workspace.
Failure Information (for bugs)
Steps to Reproduce
- Enter an existing 8.4.10 (or 8.4.13, maybe others) workspace. (Alternatively, generate a new 8.4.10 workspace. Choose
emptyandnxat the prompts.) - Follow the Updating Nx instructions by trying to generate a
migrations.jsonfile by runningnx migrate @nrwl/workspace. - Observe the following error:
Project '@nrwl/workspace' could not be found in workspace.
Context
- Workspace originally created with Nx 8.4.10, discovered issue when attempting to update to 8.5.0
- Simplified reproduction repository (freshly created with 8.5.0, downgraded to 8.4.10 purely to demonstrate the migration issue): https://github.com/wKovacs64/nx-migration-test
Failure Logs
Project '@nrwl/workspace' could not be found in workspace.
Other
Not sure what else may be helpful. Feel free to request additional information.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
Nx Upgrade from v11 to v12.10.1 is giving "Module not found ...
I am currently on Nx version 11 using Angular 11 in my project. I am trying to upgrade Nx to v12.10.1. I believe...
Read more >nrwl-nx/community - Gitter
Hello creating a new project with Angular 10 get next error: create-nx-workspace ... node_modules/.bin/ng: not found Workspace creation failed, see above.
Read more >The ultimate migration guide to angular-eslint, ESLint and Nx 11
When migrating to Nx 11, existing projects using ESLint will be migrated to include angular-eslint. Create Nx 10 workspace with angular preset.
Read more >Notes on Migrating Angular Project to Nx Workspace ... - ITNEXT
ng update After upgrading to the latest version of Angular, it's time for migrating to Nx Workspace. · git checkout -b nx ·...
Read more >@nrwl/workspace - npm
It should be present in every Nx workspace and other plugins build on it. ... Start using @nrwl/workspace in your project by running...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Folks. I’m going to close this issue due to inactivity. We fixed a few migration-related problems since December. If you find any that are still present, please open another issue and we will take a look asap. Thank you!
Yeah. Sorry about it. We hit a bunch of issues with the migrate command, so the easiest way to make it work is to:
In this case you will use the fixed version of the migrate command but will still run all the migrations.