Skip to content

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

@wKovacs64

Description

@wKovacs64

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions