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

Running nx g @nx/linter:convert-to-flat-config install the wrong version "@eslint/js" #19064

Closed
1 of 4 tasks
NachoVazquez opened this issue Sep 7, 2023 · 1 comment · Fixed by #19077
Closed
1 of 4 tasks

Comments

@NachoVazquez
Copy link
Contributor

Current Behavior

When running the command nx g @nx/linter:convert-to-flat-config, the Nx generator adds the dependency@eslint/js with version 2.1.1 to the package.json.

Such a version doesn't exist, which causes the installation process to fail.

Expected Behavior

The correct version of the package should be "@eslint/js": "^8.48.0"

GitHub Repo

No response

Steps to Reproduce

  1. Generate a new repo with version 16.8.0 of nx. (npx create-nx-workspace@18.6.0)
  2. Run the ESLint flat config generator nx g @nx/linter:convert-to-flat-config
  3. Try running the install command of your package manager (npm install)

Nx Report

Node   : 18.16.0
   OS     : darwin-arm64
   pnpm   : 8.7.1

   nx (global)        : 16.5.5
   nx                 : 16.8.0
   @nx/js             : 16.8.0
   @nx/jest           : 16.8.0
   @nx/linter         : 16.8.0
   @nx/workspace      : 16.8.0
   @nx/eslint-plugin  : 16.8.0
   @nx/next           : 16.8.0
   @nx/react          : 16.8.0
   typescript         : 5.1.6

Failure Logs

pnpm install
 ERR_PNPM_NO_MATCHING_VERSION  No matching version found for @eslint/js@^2.1.1

The latest release of @eslint/js is "8.48.0".

If you need the full list of all 16 published versions run "$ pnpm view @eslint/js versions".
Progress: resolved 0, reused 1, downloaded 0, added 0

Package Manager Version

pnpm: 8.7.1

Operating System

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

Additional Information

No response

@github-actions
Copy link

github-actions bot commented Oct 9, 2023

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 Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.