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
While trying to generate library using nx g library --dry-run, the command failed with
Could not find root flat config file
After a quick research, it is recommended to convert the eslint to flat files using
nx g @nx/eslint:convert-to-flat-config
But afterwards, my nx.json is marked "red" in VSCode and I can't run any NX commands anymore. They all fail with
Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
Also, my editor reports in the nx.json this issue:
An error occurred while processing files for the @nx/eslint/plugin plugin.
- apps/administration/eslint.config.js: Key "rules": Key "@typescript-eslint/no-extra-semi": Could not find "no-extra-semi" in plugin "@typescript-eslint". Did you mean "@/no-extra-semi"?
TypeError: Key "rules": Key "@typescript-eslint/no-extra-semi": Could not find "no-extra-semi" in plugin "@typescript-eslint". Did you mean "@/no-extra-semi"?
....
- apps/reservation/eslint.config.js: Key "rules": Key "@typescript-eslint/no-extra-semi": Could not find "no-extra-semi" in plugin "@typescript-eslint". Did you mean "@/no-extra-semi"?
TypeError: Key "rules": Key "@typescript-eslint/no-extra-semi": Could not find "no-extra-semi" in plugin "@typescript-eslint". Did you mean "@/no-extra-semi"?
...
It stays even if I remove all occurrences of no-extra-semi in my project.
Expected Behavior
NX works even after migration using nx g @nx/eslint:convert-to-flat-config.
GitHub Repo
No response
Steps to Reproduce
Use NX 19.x
Upgrade ot NX 20.x using migrate latest
Perform flat file migration using nx g @nx/eslint:convert-to-flat-config
nx.json is reporting errors, nx commands do not run anymore
An error occurred while processing files for the @nx/eslint/plugin plugin.
- apps/administration/eslint.config.js: Key "rules": Key "@typescript-eslint/no-extra-semi": Could not find "no-extra-semi"in plugin "@typescript-eslint". Did you mean "@/no-extra-semi"?
TypeError: Key "rules": Key "@typescript-eslint/no-extra-semi": Could not find "no-extra-semi"in plugin "@typescript-eslint". Did you mean "@/no-extra-semi"?
at throwRuleNotFoundError (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/rule-validator.js:66:11)
at RuleValidator.validate (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/rule-validator.js:147:17)
at new Config (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/config.js:228:27)
at [finalizeConfig] (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/flat-config-array.js:216:16)
at FlatConfigArray.getConfigWithStatus (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/@eslint/config-array/dist/cjs/index.cjs:1178:55)
at FlatConfigArray.getConfig (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/@eslint/config-array/dist/cjs/index.cjs:1196:15)
at ESLint.calculateConfigForFile (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/eslint/eslint.js:1069:24)
at async ESLint.isPathIgnored (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/eslint/eslint.js:1099:24)
at async /Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/@nx/eslint/src/plugins/plugin.js:123:19
at async Promise.all (index 0)
- apps/reservation/eslint.config.js: Key "rules": Key "@typescript-eslint/no-extra-semi": Could not find "no-extra-semi"in plugin "@typescript-eslint". Did you mean "@/no-extra-semi"?
TypeError: Key "rules": Key "@typescript-eslint/no-extra-semi": Could not find "no-extra-semi"in plugin "@typescript-eslint". Did you mean "@/no-extra-semi"?
at throwRuleNotFoundError (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/rule-validator.js:66:11)
at RuleValidator.validate (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/rule-validator.js:147:17)
at new Config (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/config.js:228:27)
at [finalizeConfig] (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/flat-config-array.js:216:16)
at FlatConfigArray.getConfigWithStatus (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/@eslint/config-array/dist/cjs/index.cjs:1178:55)
at FlatConfigArray.getConfig (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/@eslint/config-array/dist/cjs/index.cjs:1196:15)
at ESLint.calculateConfigForFile (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/eslint/eslint.js:1069:24)
at async ESLint.isPathIgnored (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/eslint/eslint.js:1099:24)
at async /Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/@nx/eslint/src/plugins/plugin.js:123:19
at async Promise.all (index 0)
- eslint.config.js: Key "rules": Key "@typescript-eslint/no-extra-semi": Could not find "no-extra-semi"in plugin "@typescript-eslint". Did you mean "@/no-extra-semi"?
TypeError: Key "rules": Key "@typescript-eslint/no-extra-semi": Could not find "no-extra-semi"in plugin "@typescript-eslint". Did you mean "@/no-extra-semi"?
at throwRuleNotFoundError (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/rule-validator.js:66:11)
at RuleValidator.validate (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/rule-validator.js:147:17)
at new Config (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/config.js:228:27)
at [finalizeConfig] (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/config/flat-config-array.js:216:16)
at FlatConfigArray.getConfigWithStatus (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/@eslint/config-array/dist/cjs/index.cjs:1178:55)
at FlatConfigArray.getConfig (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/@eslint/config-array/dist/cjs/index.cjs:1196:15)
at ESLint.calculateConfigForFile (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/eslint/eslint.js:1069:24)
at async ESLint.isPathIgnored (/Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/eslint/lib/eslint/eslint.js:1099:24)
at async /Users/borisbojic/Webdevelopment/2024/grandls-frontends/node_modules/@nx/eslint/src/plugins/plugin.js:123:19
at async Promise.all (index 0)
Current Behavior
While trying to generate library using
nx g library --dry-run
, the command failed withCould not find root flat config file
After a quick research, it is recommended to convert the eslint to flat files using
nx g @nx/eslint:convert-to-flat-config
But afterwards, my nx.json is marked "red" in VSCode and I can't run any NX commands anymore. They all fail with
Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
Also, my editor reports in the nx.json this issue:
It stays even if I remove all occurrences of
no-extra-semi
in my project.Expected Behavior
NX works even after migration using
nx g @nx/eslint:convert-to-flat-config
.GitHub Repo
No response
Steps to Reproduce
nx g @nx/eslint:convert-to-flat-config
Nx Report
Failure Logs
Package Manager Version
yarn 4.5.2
Operating System
Additional Information
My nx.json
The text was updated successfully, but these errors were encountered: