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.

Migration failure: Project '@nrwl/workspace' could not be found in workspace.

See original GitHub issue

Expected 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

  1. Enter an existing 8.4.10 (or 8.4.13, maybe others) workspace. (Alternatively, generate a new 8.4.10 workspace. Choose empty and nx at the prompts.)
  2. Follow the Updating Nx instructions by trying to generate a migrations.json file by running nx migrate @nrwl/workspace.
  3. 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

1reaction
vsavkincommented, Feb 21, 2020

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!

0reactions
vsavkincommented, Jan 3, 2020

Yeah. Sorry about it. We hit a bunch of issues with the migrate command, so the easiest way to make it work is to:

npm install --save-dev @nrwl/workspace@8.9.0
nx migrate @nrwl/workspace@8.9.0 --from='@nrwl/workspace:8.5.2' 

In this case you will use the fixed version of the migrate command but will still run all the migrations.

Read more comments on GitHub >

github_iconTop 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 >

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