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
I have a project that does not have an eslint file in it and the migration did not account for the file not existing
Error: Cannot find apps/docs/.eslintrc.json
at readJson (/Users/foo/dev/node/foo/node_modules/nx/src/generators/utils/json.js:14:15)
at updateJson (/Users/foo/dev/node/foo/node_modules/nx/src/generators/utils/json.js:45:34)
at updateOverrideInLintConfig (/Users/foo/dev/node/foo/node_modules/@nx/eslint/src/generators/utils/eslint-file.js:142:33)
at /Users/foo/dev/node/foo/node_modules/@nx/next/src/migrations/update-17-2-7/remove-eslint-rules-patch.js:8:54
at Map.forEach (<anonymous>)
at update (/Users/foo/dev/node/foo/node_modules/@nx/next/src/migrations/update-17-2-7/remove-eslint-rules-patch.js:7:14)
at runNxMigration (/Users/foo/dev/node/foo/node_modules/nx/src/command-line/migrate/migrate.js:1017:11)
at executeMigrations (/Users/foo/dev/node/foo/node_modules/nx/src/command-line/migrate/migrate.js:880:39)
at async runMigrations (/Users/foo/dev/node/foo/node_modules/nx/src/command-line/migrate/migrate.js:965:37)
at async /Users/foo/dev/node/foo/node_modules/nx/src/command-line/migrate/migrate.js:1034:13
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.
Expected Behavior
The migration should not fail if eslint file does not exist in a given application, instead it should skip the application/library and move on.
> NX Running migrations from 'migrations.json'> NX Failed to run update-17-2-7 from @nx/next. This workspace is NOT up to date!> NX Cannot find apps/docs/.eslintrc.json
Error: Cannot find apps/docs/.eslintrc.json
at readJson (/Users/foo/dev/node/foo/node_modules/nx/src/generators/utils/json.js:14:15)
at updateJson (/Users/foo/dev/node/foo/node_modules/nx/src/generators/utils/json.js:45:34)
at updateOverrideInLintConfig (/Users/foo/dev/node/foo/node_modules/@nx/eslint/src/generators/utils/eslint-file.js:142:33)
at /Users/foo/dev/node/foo/node_modules/@nx/next/src/migrations/update-17-2-7/remove-eslint-rules-patch.js:8:54
at Map.forEach (<anonymous>)
at update (/Users/foo/dev/node/foo/node_modules/@nx/next/src/migrations/update-17-2-7/remove-eslint-rules-patch.js:7:14)
at runNxMigration (/Users/foo/dev/node/foo/node_modules/nx/src/command-line/migrate/migrate.js:1017:11)
at executeMigrations (/Users/foo/dev/node/foo/node_modules/nx/src/command-line/migrate/migrate.js:880:39)
at async runMigrations (/Users/foo/dev/node/foo/node_modules/nx/src/command-line/migrate/migrate.js:965:37)
at async /Users/foo/dev/node/foo/node_modules/nx/src/command-line/migrate/migrate.js:1034:13
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.
Current Behavior
I have a project that does not have an eslint file in it and the migration did not account for the file not existing
Expected Behavior
The migration should not fail if eslint file does not exist in a given application, instead it should skip the application/library and move on.
GitHub Repo
https://github.com/jetstreamapp/jetstream/tree/v3.7.0
Steps to Reproduce
npx nx migrate latest
npx nx migrate --run-migrations
Nx Report
Failure Logs
Package Manager Version
yarn 1.22.19
Operating System
Additional Information
The migration was developed in this PR: #20863
The text was updated successfully, but these errors were encountered: