You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to migrate old Angular mono repo project which is in 9.x.x to 11.x.x, all packages are migrated except Angular Material and CDK.
our migration.json file is like below:
{
"migrations": [
{
"version": "10.0.0-0",
"description": "Updates Angular Material to v10",
"factory": "./ng-update/index#updateToV10",
"package": "@angular/material",
"name": "migration-v10"
},
{
"version": "11.0.0-0",
"description": "Updates Angular Material to v11",
"factory": "./ng-update/index#updateToV11",
"package": "@angular/material",
"name": "migration-v11"
},
{
"version": "10.0.0-0",
"description": "Updates the Angular CDK to v10",
"factory": "./ng-update/index#updateToV10",
"package": "@angular/cdk",
"name": "migration-v10"
},
{
"version": "11.0.0-0",
"description": "Updates the Angular CDK to v11",
"factory": "./ng-update/index#updateToV11",
"package": "@angular/cdk",
"name": "migration-v11"
}
]
}
while running migration command "nx migrate --run-migrations=migrations.json" it stuck and not moving further
C:\CI-UI-Workspace\WOA_Workspace5\CI-UI-Workspace>nx report
> NX Report complete - copy this into the issue template
Node : 14.15.0
OS : win32 x64
npm : 6.14.8
nx : Not Found
@nrwl/angular : 12.2.0
@nrwl/cli : 12.2.0
@nrwl/cypress : 12.2.0
@nrwl/devkit : 12.2.0
@nrwl/eslint-plugin-nx : Not Found
@nrwl/express : Not Found
@nrwl/jest : 12.2.0
@nrwl/linter : 12.2.0
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : 12.2.0
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 12.2.0
@nrwl/web : Not Found
@nrwl/workspace : 12.2.0
@nrwl/storybook : Not Found
@nrwl/gatsby : Not Found
typescript : 4.1.4
Failure Logs
> NX Running migrations from 'migrations.json'
Running migration migration-v10
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
node version: 14.15.0
npm version: 6.14.8
The text was updated successfully, but these errors were encountered:
Please provide more details to help us reproduce the issue accurately:
What is the Nx packages' version before running the migration?
I can see the final version is 12.2.0, and given you're migrating Angular 9 to 11, I'm assuming you're migrating from Nx 9.x.x
What command(s) did you run to migrate the Nx packages?
Please include both the nx migrate <version> and nx migrate --run-migrations commands for all packages. Based on a previous issue you had created, I'm assuming you ran first the migration for @nrwl/workspace and then for @angular/cdk and @angular/material.
Did you migrate straight from Nx 9.x.x to 12.x.x and from Angular 9.x.x to 11.x.x? Or did you migrate them incrementally, one major version at a time?
Current Behavior
We are trying to migrate old Angular mono repo project which is in 9.x.x to 11.x.x, all packages are migrated except Angular Material and CDK.
our migration.json file is like below:
{
"migrations": [
{
"version": "10.0.0-0",
"description": "Updates Angular Material to v10",
"factory": "./ng-update/index#updateToV10",
"package": "@angular/material",
"name": "migration-v10"
},
{
"version": "11.0.0-0",
"description": "Updates Angular Material to v11",
"factory": "./ng-update/index#updateToV11",
"package": "@angular/material",
"name": "migration-v11"
},
{
"version": "10.0.0-0",
"description": "Updates the Angular CDK to v10",
"factory": "./ng-update/index#updateToV10",
"package": "@angular/cdk",
"name": "migration-v10"
},
{
"version": "11.0.0-0",
"description": "Updates the Angular CDK to v11",
"factory": "./ng-update/index#updateToV11",
"package": "@angular/cdk",
"name": "migration-v11"
}
]
}
while running migration command "
nx migrate --run-migrations=migrations.json
" it stuck and not moving furtherExpected Behavior
Migration should be smooth
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
node version: 14.15.0
npm version: 6.14.8
The text was updated successfully, but these errors were encountered: