-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
Current Behavior
brandon@Mac atlantic-dawn-monorepo % pnpm exec nx migrate --run-migrations
NX Running 'pnpm install --no-frozen-lockfile --ignore-scripts' to make sure necessary packages are installed
Scope: all 33 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
Done in 1.6s using pnpm v10.10.0
NX Running migrations from 'migrations.json'
Running the following migrations:
- @nx/jest: rename-test-path-pattern (Rename the CLI option
testPathPattern
totestPathPatterns
.) - @nx/jest: replace-removed-matcher-aliases (Replace removed matcher aliases in Jest v30 with their corresponding matcher)
- @nx/js: migrate-development-custom-condition (Migrate the legacy 'development' custom condition to a workspace-unique custom condition name.)
Running migration @nx/jest: rename-test-path-pattern
Ran rename-test-path-pattern from @nx/jest
Rename the CLI option testPathPattern
to testPathPatterns
.
Changes:
UPDATE apps/email-api/project.json
UPDATE apps/fe/console-webapp/project.json
UPDATE apps/fe/trade-webapp/project.json
UPDATE apps/lending-api/project.json
UPDATE apps/quote-ticker-api/project.json
UPDATE libs/apps/email-api/emails/project.json
UPDATE libs/apps/email-api/models/project.json
UPDATE libs/apps/email-api/templates/project.json
UPDATE libs/apps/lending-api/custodian-facade/project.json
UPDATE libs/apps/lending-api/models/project.json
UPDATE libs/apps/lending-api/permissions/project.json
UPDATE libs/apps/lending-api/support/project.json
UPDATE libs/apps/oauth-api/models/project.json
UPDATE libs/apps/organization-api/models/project.json
UPDATE libs/apps/trade-order-api/models/project.json
UPDATE libs/apps/trade-sockets/models/project.json
UPDATE libs/nest/auth/project.json
UPDATE libs/nest/features/project.json
UPDATE libs/nest/microservice/project.json
UPDATE libs/nest/utils/project.json
UPDATE libs/shared/brokers/rabbitmq/publishers/project.json
UPDATE libs/shared/data-access/ms/api/project.json
UPDATE libs/shared/data-access/ms/core-api/project.json
UPDATE libs/shared/data-access/ms/lending-api/project.json
UPDATE libs/shared/data-access/ms/organization-api/project.json
UPDATE libs/shared/data-access/ms/slack-api/project.json
UPDATE libs/shared/data-access/ms/telegram-api/project.json
UPDATE libs/shared/data-access/ms/trade-order-api/project.json
UPDATE libs/shared/types/project.json
UPDATE libs/shared/util/distributed-leadership/project.json
UPDATE libs/shared/util/errors/project.json
UPDATE libs/shared/util/formatting/project.json
UPDATE libs/shared/util/json/project.json
UPDATE libs/shared/util/logging/project.json
UPDATE libs/shared/util/networking/project.json
UPDATE libs/shared/util/permissions/project.json
UPDATE libs/ui/trade-ui/project.json
UPDATE nx.json
UPDATE tsconfig.base.json
Running migration @nx/jest: replace-removed-matcher-aliases
NX Failed to run replace-removed-matcher-aliases from @nx/jest. This workspace is NOT up to date!
NX ● Validation Error:
Preset ../../jest.preset.js not found relative to rootDir /Users/brandon/Projects/atlantic-dawn-monorepo/libs/shared/types.
Configuration Documentation:
https://jestjs.io/docs/configuration
Pass --verbose to see the stacktrace.
nx migrate [packageAndVersion]
Creates a migrations file or runs migrations from the migrations file.
- Migrate packages and create migrations.json (e.g., nx migrate @nx/workspace@latest)
- Run migrations (e.g., nx migrate --run-migrations=migrations.json). Use flag --if-exists to run migrations only if the migrations file exists.
Positionals:
packageAndVersion The target package and version (e.g, @nx/workspace@16.0.0). [string]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--verbose Prints additional information about the commands (e.g., stack traces). [boolean]
--runMigrations Execute migrations from a file (when the file isn't provided, execute migrations from migrations.json). [string]
--ifExists Run migrations only if the migrations file exists, if not continues successfully. [boolean] [default: false]
--from Use the provided versions for packages instead of the ones installed in node_modules (e.g., --from="@nx/react@16.0.0,@nx/js@16.0.0"). [string]
--to Use the provided versions for packages instead of the ones calculated by the migrator (e.g., --to="@nx/react@16.0.0,@nx/js@16.0.0"). [string]
-C, --createCommits Automatically create a git commit after each migration runs. [boolean] [default: false]
--commitPrefix Commit prefix to apply to the commit for each migration, when --create-commits is enabled. [string] [default: "chore: [nx migration] "]
--interactive Enable prompts to confirm whether to collect optional package updates and migrations. [boolean] [default: false]
--excludeAppliedMigrations Exclude migrations that should have been applied on previous updates. To be used with --from. [boolean] [default: false]
Examples:
migrate latest Update all Nx plugins to "latest". This will generate migrations.json
migrate 9.0.0 Update all Nx plugins to "9.0.0". This will generate migrations.json
migrate @nx/workspace@9.0.0 --from="@nx/workspace@8.0.0,@nx/node@8.0.0" Update @nx/workspace and generate the list of migrations starting with version 8.0.0 of @nx/workspace and @nx/node, regardless of what is installed locally
migrate @nx/workspace@9.0.0 --to="@nx/react@9.0.1,@nx/angular@9.0.1" Update @nx/workspace to "9.0.0". If it tries to update @nx/react or @nx/angular, use version "9.0.1"
migrate another-package@12.0.0 Update another-package to "12.0.0". This will update other packages and will generate migrations.json file
migrate latest --interactive Collect package updates and migrations in interactive mode. In this mode, the user will be prompted whether to apply any optional package update and migration
migrate latest --from=nx@14.5.0 --exclude-applied-migrations Collect package updates and migrations starting with version 14.5.0 of "nx" (and Nx first-party plugins), regardless of what is installed locally, while excluding migrations that should have been applied on previous updates
migrate --run-migrations=migrations.json Run migrations from the provided migrations.json file. You can modify migrations.json and run this command many times
migrate --run-migrations --create-commits Create a dedicated commit for each successfully completed migration. You can customize the prefix used for each commit by additionally setting --commit-prefix="PREFIX_HERE "
Find more information and examples at https://nx.dev/nx/migrate
Error: Command failed: pnpm exec nx migrate --run-migrations
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at checkExecSyncError (node:child_process:891:11)
at execSync (node:child_process:963:15)
at runNxSync (/Users/brandon/Projects/atlantic-dawn-monorepo/node_modules/.pnpm/nx@21.5.2@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1.990177c9ee767c88ecef5c0e6203e078/node_modules/nx/src/utils/child-process.js:35:34)
at runLocalMigrate (/Users/brandon/Projects/atlantic-dawn-monorepo/node_modules/.pnpm/nx@21.5.2@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1.990177c9ee767c88ecef5c0e6203e078/node_modules/nx/src/command-line/migrate/migrate.js:1148:39)
at Object.runMigration (/Users/brandon/Projects/atlantic-dawn-monorepo/node_modules/.pnpm/nx@21.5.2@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1.990177c9ee767c88ecef5c0e6203e078/node_modules/nx/src/command-line/migrate/migrate.js:1171:9)
at Object.handler (/Users/brandon/Projects/atlantic-dawn-monorepo/node_modules/.pnpm/nx@21.5.2@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1._990177c9ee767c88ecef5c0e6203e078/node_modules/nx/src/command-line/migrate/command-object.js:13:74) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 21661,
stdout: null,
stderr: null
}
NX Command failed: pnpm exec nx migrate --run-migrations
Pass --verbose to see the stacktrace.
nx migrate [packageAndVersion]
Creates a migrations file or runs migrations from the migrations file.
- Migrate packages and create migrations.json (e.g., nx migrate @nx/workspace@latest)
- Run migrations (e.g., nx migrate --run-migrations=migrations.json). Use flag --if-exists to run migrations only if the migrations file exists.
Positionals:
packageAndVersion The target package and version (e.g, @nx/workspace@16.0.0). [string]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--verbose Prints additional information about the commands (e.g., stack traces). [boolean]
--runMigrations Execute migrations from a file (when the file isn't provided, execute migrations from migrations.json). [string]
--ifExists Run migrations only if the migrations file exists, if not continues successfully. [boolean] [default: false]
--from Use the provided versions for packages instead of the ones installed in node_modules (e.g., --from="@nx/react@16.0.0,@nx/js@16.0.0"). [string]
--to Use the provided versions for packages instead of the ones calculated by the migrator (e.g., --to="@nx/react@16.0.0,@nx/js@16.0.0"). [string]
-C, --createCommits Automatically create a git commit after each migration runs. [boolean] [default: false]
--commitPrefix Commit prefix to apply to the commit for each migration, when --create-commits is enabled. [string] [default: "chore: [nx migration] "]
--interactive Enable prompts to confirm whether to collect optional package updates and migrations. [boolean] [default: false]
--excludeAppliedMigrations Exclude migrations that should have been applied on previous updates. To be used with --from. [boolean] [default: false]
Examples:
migrate latest Update all Nx plugins to "latest". This will generate migrations.json
migrate 9.0.0 Update all Nx plugins to "9.0.0". This will generate migrations.json
migrate @nx/workspace@9.0.0 --from="@nx/workspace@8.0.0,@nx/node@8.0.0" Update @nx/workspace and generate the list of migrations starting with version 8.0.0 of @nx/workspace and @nx/node, regardless of what is installed locally
migrate @nx/workspace@9.0.0 --to="@nx/react@9.0.1,@nx/angular@9.0.1" Update @nx/workspace to "9.0.0". If it tries to update @nx/react or @nx/angular, use version "9.0.1"
migrate another-package@12.0.0 Update another-package to "12.0.0". This will update other packages and will generate migrations.json file
migrate latest --interactive Collect package updates and migrations in interactive mode. In this mode, the user will be prompted whether to apply any optional package update and migration
migrate latest --from=nx@14.5.0 --exclude-applied-migrations Collect package updates and migrations starting with version 14.5.0 of "nx" (and Nx first-party plugins), regardless of what is installed locally, while excluding migrations that should have been applied on previous updates
migrate --run-migrations=migrations.json Run migrations from the provided migrations.json file. You can modify migrations.json and run this command many times
migrate --run-migrations --create-commits Create a dedicated commit for each successfully completed migration. You can customize the prefix used for each commit by additionally setting --commit-prefix="PREFIX_HERE "
Find more information and examples at https://nx.dev/nx/migrate
Error: Command failed: /var/folders/wf/bft72k1n6pq7qqmqd7lk021r0000gn/T/tmp-21494-JU6h0vl2Uwrm/node_modules/.bin/nx migrate --run-migrations
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at checkExecSyncError (node:child_process:891:11)
at execSync (node:child_process:963:15)
at Object.runMigration (/Users/brandon/Projects/atlantic-dawn-monorepo/node_modules/.pnpm/nx@21.5.2@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1.990177c9ee767c88ecef5c0e6203e078/node_modules/nx/src/command-line/migrate/migrate.js:1164:42)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.handler (/Users/brandon/Projects/atlantic-dawn-monorepo/node_modules/.pnpm/nx@21.5.2@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1._990177c9ee767c88ecef5c0e6203e078/node_modules/nx/src/command-line/migrate/command-object.js:13:9) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 21577,
stdout: null,
stderr: null
}
Expected Behavior
migration should succeed
GitHub Repo
No response
Steps to Reproduce
- pnpm exec nx migrate --run-migrations
Nx Report
Report complete - copy this into the issue template
Node : 20.19.0
OS : darwin-arm64
Native Target : aarch64-macos
pnpm : 10.10.0
nx (global) : 21.2.1
nx : 21.5.2
@nx/js : 21.5.2
@nx/jest : 21.5.2
@nx/eslint : 21.5.2
@nx/workspace : 21.5.2
@nx/cypress : 21.5.2
@nx/devkit : 21.5.2
@nx/esbuild : 21.5.2
@nx/eslint-plugin : 21.5.2
@nx/nest : 21.5.2
@nx/next : 21.5.2
@nx/node : 21.5.2
@nx/playwright : 21.5.2
@nx/plugin : 21.5.2
@nx/react : 21.5.2
@nx/storybook : 21.5.2
@nx/vite : 21.5.2
@nx/web : 21.5.2
@nx/webpack : 21.5.2
typescript : 5.9.2
---------------------------------------
Community plugins:
@nx-tools/nx-container : 6.2.0
@nx-tools/nx-prisma : 6.5.0
---------------------------------------
Local workspace plugins:
executors
---------------------------------------
Cache Usage: 0.00 B / 92.64 GB
Failure Logs
Package Manager Version
No response
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response