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

lint task not being inferred by Nx 19.3 #26598

Closed
1 of 4 tasks
mschneider-lise opened this issue Jun 19, 2024 · 9 comments
Closed
1 of 4 tasks

lint task not being inferred by Nx 19.3 #26598

mschneider-lise opened this issue Jun 19, 2024 · 9 comments
Assignees
Labels
outdated scope: linter Issues related to Eslint support in Nx type: bug

Comments

@mschneider-lise
Copy link

mschneider-lise commented Jun 19, 2024

Current Behavior

Running npx nx lint {project} is failing with "Cannot find configuration for task {project}:lint".

I created two new Nx workspaces containing a react app using create-nx-workspace to compare Nx versions 19.3 and 19.2.3. It seems like Nx is not inferring the lint task when using 19.3.

Here are lists of the inferred targets taken from the IntelliJ plugin:

Nx 19.3
image

Nx 19.2.3
image

Expected Behavior

Running npx nx lint {project} should correctly run lint for the project.

GitHub Repo

No response

Steps to Reproduce

  1. Create a new Nx (react) project using npx [email protected]
  2. Run npx nx lint {project}

Nx Report

Node   : 20.10.0
OS     : win32-x64
npm    : 8.8.0

nx                 : 19.3.0
@nx/js             : 19.3.0
@nx/jest           : 19.3.0
@nx/linter         : 19.3.0
@nx/eslint         : 19.3.0
@nx/workspace      : 19.3.0
@nx/devkit         : 19.3.0
@nx/eslint-plugin  : 19.3.0
@nx/react          : 19.3.0
@nrwl/tao          : 19.3.0
@nx/vite           : 19.3.0
@nx/web            : 19.3.0
typescript         : 5.4.5
---------------------------------------
Registered Plugins:
@nx/vite/plugin
@nx/eslint/plugin
@nx/jest/plugin

Failure Logs

No response

Package Manager Version

No response

Operating System

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

Additional Information

It's working in our build server (linux), so maybe this problem is limitted to windows.

@mschneider-lise mschneider-lise changed the title Lint task not inferred with Nx 19.3 lint task not being inferred by Nx 19.3 Jun 19, 2024
@atsjo
Copy link

atsjo commented Jun 20, 2024

same for me... it worked after upgrading to 19.3, but disappeared after doing a nx reset... also using windows....

@cmcnicholas
Copy link

Experiencing the same issue, local nx cache had a mixture of lint tasks available for my projects (but there should be one available for each project). Deleted the nx cache and forced it to refresh workspace and the lint commands are gone from all projects now (at least consistent). This happened after upgrading to latest NX.

@ardabeyazoglu
Copy link

Same happened to me today. After struggling with multiple methods, only adding lint target to apps/libs individually made it work. However, this should not be necessary like it was before 19.3

@jahusa02
Copy link

same, even with latest update from today

@atsjo
Copy link

atsjo commented Jul 3, 2024

still same with 19.4...

@AgentEnder AgentEnder added the scope: linter Issues related to Eslint support in Nx label Jul 8, 2024
@atsjo
Copy link

atsjo commented Jul 15, 2024

seems fixed via #26638 and working for me in 19.5.0-beta.3 and 19.4.4

@leosvelperez
Copy link
Member

leosvelperez commented Jul 18, 2024

I'm closing this since the issue was addressed by #26638. Please update to Nx 19.4.4 or 19.5.0 or later.

@Ccry11
Copy link

Ccry11 commented Jul 18, 2024

If the problem persists after the update, try to run nx reset

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 Aug 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: linter Issues related to Eslint support in Nx type: bug
Projects
None yet
Development

No branches or pull requests

8 participants