nx icon indicating copy to clipboard operation
nx copied to clipboard

Migrating to 16.4.0 from 15.4.4 with angular upgrade to 16.1 failing while running migration.json

Open lak-dev opened this issue 2 years ago • 1 comments

Current Behavior

When migrating project from nx 15.4.4 to 16.4.0 with angular upgrade to 15.1 to 16.1 , I'm getting this error while running migration.json file

Failed to run update -to-cypress-12 from @nwrl/cypress
 This workspace is NOT up to date!!
Can not find module './ast'

I have tried installing cypress before running migration.json file, then it was giving same error for @nwrl/jest package.

Note : when I run following command it working fine - it properly updates package.json and migration.json file is created:

npx nx migrate latest --interactive

I'm getting error when I run below command

npx yarn nx migrate --run-migrations --verbose

Expected Behavior

Migration should complete without error

GitHub Repo

No response

Steps to Reproduce

I don't have custom stuff in project so I believe any migration from 15.4.4 to 16.4.0 will create this problem.

Nx Report

Node 18.16.1
OS    win32-x64
yarn. 1.22.19

nx : 16.4.0
@nx/js : 16.4.0
@nx/jest : 16.4.0
@nx/workspace:16.4.0
@nx/linter :16.4.0
@nx/angular: 16.4.0
@nx/cypress:16.4.0
@nx/devkit: 16.4.0
@nx/eslint-plugin: 16.4.0
@nwrl/Tao:16.4.0
@nx/webpack:16.4.0
@nx/nx-cloud:16.0.5
Typescript: 5.1.6

Failure Logs

No response

Operating System

  • [ ] macOS
  • [ ] Linux
  • [X] Windows
  • [ ] Other (Please specify)

Additional Information

No response

lak-dev avatar Jun 29 '23 04:06 lak-dev

any updates on this ?

LouisLecouturier avatar Jul 05 '23 15:07 LouisLecouturier

Any update for this? Facing issues since last weeks. Tried multiple ways

lak-dev avatar Jul 16 '23 10:07 lak-dev

@lak-dev can you rerun with the --verbose flag and get a full stack trace?

it seems like maybe an issue with tsquery running and makes me think there was an issue installing deps. so you can try removing node_modules and reinstalling.

barbados-clemens avatar Jul 26 '23 16:07 barbados-clemens

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

github-actions[bot] avatar Aug 23 '23 00:08 github-actions[bot]

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

github-actions[bot] avatar Oct 07 '23 00:10 github-actions[bot]