Skip to content

Running migration update-19-6-0-update-ci-webserver-for-vite fails with matchingPluginRegistrations is not iterable #31284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks
hmendezm opened this issue May 20, 2025 · 0 comments

Comments

@hmendezm
Copy link

Current Behavior

Migrating an [email protected] workspace to [email protected] fails with:

Running migration @nx/cypress: update-19-6-0-update-ci-webserver-for-vite

NX Failed to run update-19-6-0-update-ci-webserver-for-vite from @nx/cypress. This workspace is NOT up to date!

NX matchingPluginRegistrations is not iterable
We have Cypress installed but are not actually currently using it in any projects. We do use Angular.

Expected Behavior

Migration should work without error.

GitHub Repo

No response

Steps to Reproduce

see #27498
I got the same error. It looks like the fix was not push after all.

Nx Report

nx report
 NX  Falling back to ts-node for local typescript execution. This may be a little slower.
  - To fix this, ensure @swc-node/register and @swc/core have been installed

 NX   Report complete - copy this into the issue template

Node           : 18.20.8
OS             : win32-x64
Native Target  : x86_64-windows
yarn           : 1.22.22

nx (global)        : 21.0.3
nx                 : 19.6.0
@nx/js             : 19.6.0
@nx/jest           : 19.6.0
@nx/linter         : 19.6.0
@nx/eslint         : 19.6.0
@nx/workspace      : 19.6.0
@nx/angular        : 19.6.0
@nx/cypress        : 19.6.0
@nx/devkit         : 19.6.0
@nx/eslint-plugin  : 19.6.0
@nrwl/tao          : 19.6.0
@nx/web            : 19.6.0
@nx/webpack        : 19.6.0
nx-cloud           : 19.1.0
typescript         : 5.5.4
---------------------------------------
Community plugins:
@ngrx/component-store : 18.0.1
@ngrx/effects         : 18.0.1
@ngrx/entity          : 18.0.1
@ngrx/operators       : 18.0.1
@ngrx/router-store    : 18.0.1
@ngrx/store           : 18.0.1
@ngrx/store-devtools  : 18.0.1
devextreme-angular    : 24.2.7

Failure Logs

>yarn nx migrate --run-migrations  --verbose
yarn run v1.22.22
$ C:\projects\Pivotal.Frontend.2.0\node_modules\.bin\nx migrate --run-migrations --verbose
Failed to install the latest version of the migration script. Using the current version.
$ C:\projects\Pivotal.Frontend.2.0\node_modules\.bin\nx _migrate --run-migrations --verbose

 NX   Running 'yarn' to make sure necessary packages are installed

[1/4] Resolving packages...
success Already up-to-date.

 NX   Running migrations from 'migrations.json'

Running the following migrations:
- @nx/cypress: update-19-6-0-update-ci-webserver-for-vite (Update ciWebServerCommand to use static serve for the application.)
- @nx/angular: update-19-6-0 (Ensure Module Federation DTS is turned off by default.)
- @nx/angular: update-angular-cli-version-18-2-0 (Update the @angular/cli package version to ~18.2.0.)
---------------------------------------------------------

Running migration @nx/cypress: update-19-6-0-update-ci-webserver-for-vite

 NX   Failed to run update-19-6-0-update-ci-webserver-for-vite from @nx/cypress. This workspace is NOT up to date!


 NX   matchingPluginRegistrations is not iterable


TypeError: matchingPluginRegistrations is not iterable
    at default_1 (C:\projects\Pivotal.Frontend.2.0\node_modules\@nx\cypress\src\migrations\update-19-6-0\update-ci-webserver-for-static-serve.js:14:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runNxMigration (C:\projects\Pivotal.Frontend.2.0\node_modules\nx\src\command-line\migrate\migrate.js:1036:5)
    at async executeMigrations (C:\projects\Pivotal.Frontend.2.0\node_modules\nx\src\command-line\migrate\migrate.js:921:33)
    at async runMigrations (C:\projects\Pivotal.Frontend.2.0\node_modules\nx\src\command-line\migrate\migrate.js:1009:37)
    at async C:\projects\Pivotal.Frontend.2.0\node_modules\nx\src\command-line\migrate\migrate.js:1053:13
    at async handleErrors (C:\projects\Pivotal.Frontend.2.0\node_modules\nx\src\utils\params.js:22:24)
    at async Object.handler (C:\projects\Pivotal.Frontend.2.0\node_modules\nx\src\command-line\migrate\command-object.js:26:43)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Command failed: yarn nx _migrate --run-migrations --verbose
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant