-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Labels
priority: highHigh Priority (important issues which affect many people severely)High Priority (important issues which affect many people severely)scope: linterIssues related to Eslint support in NxIssues related to Eslint support in Nxtype: bug
Description
Current Behavior
❯ pnpm nx run lint
NX Failed to process project graph.
2 errors occurred while processing files for the @nx/eslint/plugin plugin (Defined at nx.json#plugins[2]).
- apps/documentation/eslint.config.mjs: Cannot read properties of undefined (reading 'version')
- eslint.config.mjs: Cannot read properties of undefined (reading 'version')
Expected Behavior
nx lint should run normally
GitHub Repo
No response
Steps to Reproduce
- have any project with
@nx/eslint22.5.0 andeslint10.x.x installed (v10 requires flat config) - try to run the
nx run lintcommand - see the error
Nx Report
❯ pnpm nx report
NX Report complete - copy this into the issue template
Node : 24.3.0
OS : linux-x64
Native Target : x86_64-linux
pnpm : 10.28.2
daemon : Available
nx : 22.5.0
@nx/js : 22.5.0
@nx/eslint : 22.5.0
@nx/workspace : 22.5.0
@nx/devkit : 22.5.0
@nx/eslint-plugin : 22.5.0
@nx/nuxt : 22.5.0
@nx/vite : 22.5.0
@nx/vitest : 22.5.0
@nx/vue : 22.5.0
@nx/web : 22.5.0
typescript : 5.9.3
---------------------------------------
Registered Plugins:
@nx/nuxt/plugin
@nx/js/typescript
@nx/eslint/plugin
---------------------------------------
Cache Usage: 0.00 B / 155.11 GB
---------------------------------------
⚠️ Unable to construct project graph.
Failed to process project graph.
- apps/documentation/eslint.config.mjs: TypeError: Cannot read properties of undefined (reading 'version')
at internalCreateNodesV2 (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/@nx+eslint@22.5.0_patch_hash=378599217d59860a5ea36f85d77d062ad91588e7c8aa9a001532614298_f17e802a630f949b1cc68d60557247b8/node_modules/@nx/eslint/src/plugins/plugin.js:44:34)
at /mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/@nx+eslint@22.5.0_patch_hash=378599217d59860a5ea36f85d77d062ad91588e7c8aa9a001532614298_f17e802a630f949b1cc68d60557247b8/node_modules/@nx/eslint/src/plugins/plugin.js:110:95
at /mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/nx@22.5.0_@swc-node+register@1.11.1_@swc+core@1.15.11_@swc+helpers@0.5.18__@swc+types@0_1a953fb3c7fd7cb5ce6258e9e209fbf6/node_modules/nx/src/project-graph/plugins/utils.js:10:33
at Array.map (<anonymous>)
at createNodesFromFiles (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/nx@22.5.0_@swc-node+register@1.11.1_@swc+core@1.15.11_@swc+helpers@0.5.18__@swc+types@0_1a953fb3c7fd7cb5ce6258e9e209fbf6/node_modules/nx/src/project-graph/plugins/utils.js:8:35)
at exports.createNodes (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/@nx+eslint@22.5.0_patch_hash=378599217d59860a5ea36f85d77d062ad91588e7c8aa9a001532614298_f17e802a630f949b1cc68d60557247b8/node_modules/@nx/eslint/src/plugins/plugin.js:110:60)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async LoadedNxPlugin.createNodes (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/nx@22.5.0_@swc-node+register@1.11.1_@swc+core@1.15.11_@swc+helpers@0.5.18__@swc+types@0_1a953fb3c7fd7cb5ce6258e9e209fbf6/node_modules/nx/src/project-graph/plugins/loaded-nx-plugin.js:26:36)
at async LoadedNxPlugin.createNodes.<computed> (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/nx@22.5.0_@swc-node+register@1.11.1_@swc+core@1.15.11_@swc+helpers@0.5.18__@swc+types@0_1a953fb3c7fd7cb5ce6258e9e209fbf6/node_modules/nx/src/project-graph/plugins/loaded-nx-plugin.js:40:28)
at async createNodes (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/nx@22.5.0_@swc-node+register@1.11.1_@swc+core@1.15.11_@swc+helpers@0.5.18__@swc+types@0_1a953fb3c7fd7cb5ce6258e9e209fbf6/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker.js:74:36)
- eslint.config.mjs: TypeError: Cannot read properties of undefined (reading 'version')
at internalCreateNodesV2 (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/@nx+eslint@22.5.0_patch_hash=378599217d59860a5ea36f85d77d062ad91588e7c8aa9a001532614298_f17e802a630f949b1cc68d60557247b8/node_modules/@nx/eslint/src/plugins/plugin.js:44:34)
at /mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/@nx+eslint@22.5.0_patch_hash=378599217d59860a5ea36f85d77d062ad91588e7c8aa9a001532614298_f17e802a630f949b1cc68d60557247b8/node_modules/@nx/eslint/src/plugins/plugin.js:110:95
at /mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/nx@22.5.0_@swc-node+register@1.11.1_@swc+core@1.15.11_@swc+helpers@0.5.18__@swc+types@0_1a953fb3c7fd7cb5ce6258e9e209fbf6/node_modules/nx/src/project-graph/plugins/utils.js:10:33
at Array.map (<anonymous>)
at createNodesFromFiles (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/nx@22.5.0_@swc-node+register@1.11.1_@swc+core@1.15.11_@swc+helpers@0.5.18__@swc+types@0_1a953fb3c7fd7cb5ce6258e9e209fbf6/node_modules/nx/src/project-graph/plugins/utils.js:8:35)
at exports.createNodes (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/@nx+eslint@22.5.0_patch_hash=378599217d59860a5ea36f85d77d062ad91588e7c8aa9a001532614298_f17e802a630f949b1cc68d60557247b8/node_modules/@nx/eslint/src/plugins/plugin.js:110:60)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async LoadedNxPlugin.createNodes (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/nx@22.5.0_@swc-node+register@1.11.1_@swc+core@1.15.11_@swc+helpers@0.5.18__@swc+types@0_1a953fb3c7fd7cb5ce6258e9e209fbf6/node_modules/nx/src/project-graph/plugins/loaded-nx-plugin.js:26:36)
at async LoadedNxPlugin.createNodes.<computed> (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/nx@22.5.0_@swc-node+register@1.11.1_@swc+core@1.15.11_@swc+helpers@0.5.18__@swc+types@0_1a953fb3c7fd7cb5ce6258e9e209fbf6/node_modules/nx/src/project-graph/plugins/loaded-nx-plugin.js:40:28)
at async createNodes (/mnt/shared/Documents/Programmation/projets/kubestro/kubestro/node_modules/.pnpm/nx@22.5.0_@swc-node+register@1.11.1_@swc+core@1.15.11_@swc+helpers@0.5.18__@swc+types@0_1a953fb3c7fd7cb5ce6258e9e209fbf6/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker.js:74:36)Failure Logs
Package Manager Version
pnpm 10.28.2
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
Cause : FlatESLint as been renamed ESLint and LegacyESLint has been removed. In order to add compatibility to this breaking change to packages/eslint/src/utils/resolve-eslint-class.ts is required to check if either ESLint exists, otherwise try to fallback to FlatConfig and LegacyConfig.
See: https://eslint.org/docs/latest/use/migrate-to-10.0.0#-old-config-format-no-longer-supported
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: highHigh Priority (important issues which affect many people severely)High Priority (important issues which affect many people severely)scope: linterIssues related to Eslint support in NxIssues related to Eslint support in Nxtype: bug