Skip to content
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

Error when generating migration in a repo/project without lint plugin enabled #13326

Closed
Elyahou opened this issue Nov 22, 2022 · 1 comment · Fixed by #13327
Closed

Error when generating migration in a repo/project without lint plugin enabled #13326

Elyahou opened this issue Nov 22, 2022 · 1 comment · Fixed by #13327

Comments

@Elyahou
Copy link
Contributor

Elyahou commented Nov 22, 2022

Current Behavior

When generating a migration in a repository/project that don't have eslint target, it give this error:

>  NX   getEsLintOptions is not a function or its return value is not iterable

Expected Behavior

The migration is generated without adding lint check to migrations.json file

Github Repo

No response

Steps to Reproduce

  1. In a repository that is not using @nrwl/linter:eslint executor
  • Run nx g @nrwl/nx-plugin:migration test-migration --project={projectName} --packageVersion={packageVersion}

Nx Report

>  NX   Report complete - copy this into the issue template

   Node : 18.2.0
   OS   : darwin arm64
   npm  : 8.9.0

   nx : 14.8.6
   @nrwl/angular : Not Found
   @nrwl/cypress : Not Found
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.8.6
   @nrwl/esbuild : Not Found
   @nrwl/eslint-plugin-nx : 14.8.6
   @nrwl/expo : Not Found
   @nrwl/express : Not Found
   @nrwl/jest : 14.8.6
   @nrwl/js : 14.8.6
   @nrwl/linter : 14.8.6
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : Not Found
   @nrwl/nx-plugin : 14.8.6
   @nrwl/react : Not Found
   @nrwl/react-native : Not Found
   @nrwl/rollup : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : Not Found
   @nrwl/web : Not Found
   @nrwl/webpack : Not Found
   @nrwl/workspace : 14.8.6
   typescript : 4.8.4

Failure Logs

>  NX  Generating @nrwl/nx-plugin:migration


 >  NX   getEsLintOptions is not a function or its return value is not iterable

   Pass --verbose to see the stacktrace.


### Additional Information

_No response_
@github-actions
Copy link

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 github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants