nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
22.59k stars 2.25k forks source link

Nx not able to migrate angular material and Angular CDK from 9.X.X to 11.X.X #26649

Open Jay1989 opened 1 week ago

Jay1989 commented 1 week ago

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 further

image

Expected Behavior

Migration should be smooth

GitHub Repo

No response

Steps to Reproduce

  1. set NX_MIGRATE_USE_LOCAL=true
  2. set NG_DISABLE_VERSION_CHECK=true
  3. nx migrate @angular/material@11.2.0
  4. nx migrate @angular/cdk@11.2.0
  5. npm install
  6. nx migrate --run-migrations=migrations.json

Nx Report

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

Additional Information

node version: 14.15.0 npm version: 6.14.8

leosvelperez commented 6 days ago

Please provide more details to help us reproduce the issue accurately: