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
When running pnpm exec nx migrate --run-migrations --verbose on NX version 19.1, the following error occurs as shown in the image below.
Upon debugging, it was identified that the json.rule field is undefined, which is causing the error.
TypeError: Cannot read properties of undefined (reading '@typescript-eslint/no-extra-semi')
at addNoExtraSemiExplicitly (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:48:20)
at /Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:22:45
at updateJson (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/generators/utils/json.js:46:26)
at /Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:16:33
at visitNotIgnoredFiles (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+devkit@19.1.1_nx@19.1.1/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js:31:13)
at migrate (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:5:39)
at runNxMigration (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:1039:11)
at executeMigrations (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:902:39)
at runMigrations (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:987:43)
at /Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:1056:19
Expected Behavior
I hope the migration command runs successfully without errors.
GitHub Repo
No response
Steps to Reproduce
pnpm exec nx migrate --run-migrations --verbose with below file
NX Failed to run update-19-1-0-rename-no-extra-semi from @nx/eslint-plugin. This workspace is NOT up to date!
NX Cannot read properties of undefined (reading '@typescript-eslint/no-extra-semi')
TypeError: Cannot read properties of undefined (reading '@typescript-eslint/no-extra-semi')
at addNoExtraSemiExplicitly (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:48:20)
at /Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:22:45
at updateJson (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/generators/utils/json.js:46:26)
at /Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:16:33
at visitNotIgnoredFiles (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+devkit@19.1.1_nx@19.1.1/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js:31:13)
at migrate (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:5:39)
at runNxMigration (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:1039:11)
at executeMigrations (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:902:39)
at runMigrations (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:987:43)
at /Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@1
Package Manager Version
pnpm 8.15.5
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->
<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->
## Current Behavior
<!-- This is the behavior we have today -->
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->
Fixes#26306
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->
<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->
## Current Behavior
<!-- This is the behavior we have today -->
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->
Fixes#26306
(cherry picked from commit adc1d70)
Current Behavior
When running
pnpm exec nx migrate --run-migrations --verbose on NX version 19.1
, the following error occurs as shown in the image below.Upon debugging, it was identified that the json.rule field is undefined, which is causing the error.
TypeError: Cannot read properties of undefined (reading '@typescript-eslint/no-extra-semi')
at addNoExtraSemiExplicitly (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:48:20)
at /Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:22:45
at updateJson (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/generators/utils/json.js:46:26)
at /Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:16:33
at visitNotIgnoredFiles (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+devkit@19.1.1_nx@19.1.1/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js:31:13)
at migrate (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/@nx+eslint-plugin@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96_@types+node@18.19.31_@type_z3thrkopcewvnszb45uejzpnpy/node_modules/@nx/eslint-plugin/src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi.js:5:39)
at runNxMigration (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:1039:11)
at executeMigrations (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:902:39)
at runMigrations (/Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:987:43)
at /Users/youngchang/dev/workspace/enterprise-web/node_modules/.pnpm/nx@19.1.1_@swc-node+register@1.8.0_@swc+core@1.3.96/node_modules/nx/src/command-line/migrate/migrate.js:1056:19
Expected Behavior
I hope the migration command runs successfully without errors.
GitHub Repo
No response
Steps to Reproduce
pnpm exec nx migrate --run-migrations --verbose with below file
Nx Report
Failure Logs
Package Manager Version
pnpm 8.15.5
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: