Next app build failing due to eslint error - Plugin "react-hooks" was conflicted (Post update to 13.9.5 versions)
See original GitHub issueCurrent Behavior
Whenver I run build of my next app it fails giving this error - Plugin “react-hooks” was conflicted between “apps\app-shell-ssr.eslintrc.json » eslint-config-next/core-web-vitals » C:\Sprint-8.6\idp-app-seed-ui-template\node_modules\eslint-config-next\index.js » plugin:react-hooks/recommended” and “apps\app-shell-ssr.eslintrc.json » …/…/.eslintrc.json”.
Expected Behavior
Next app builds should be fine after updating from 13.5.3 versions to 13.9.3(I used nx migrate)
Steps to Reproduce
here is my eslintrc.json { “extends”: [ “plugin:@nrwl/nx/react-typescript”, “…/…/.eslintrc.json”, “next”, “next/core-web-vitals” ], “ignorePatterns”: [ “!/" ], “overrides”: [ { “files”: [ ".ts", “.tsx", ".js”, “.jsx" ], “parserOptions”: { “project”: [ "apps/app-shell-ssr/tsconfig(.)?.json” ] }, “rules”: { “@next/next/no-html-link-for-pages”: [“error”, “apps/app-shell-ssr/pages”] } }, { “files”: [ “.ts", ".tsx” ], “rules”: {} }, { “files”: [ “.js", ".jsx” ], “rules”: {} } ] } and lint config within project.json “lint”: { “executor”: “@nrwl/linter:eslint”, “outputs”: [“{options.outputFile}”], “options”: { “lintFilePatterns”: [ "apps/app-shell-ssr//*.{ts,tsx,js,jsx}” ] } },
Cannot share PR links,as it is for a private repo
This issue may not be prioritized if details are not provided to help us reproduce the issue.
Failure Logs
Environment
Node : 16.14.2 OS : win32 x64 yarn : 1.21.1
nx : 13.9.5 @nrwl/angular : Not Found @nrwl/cypress : 13.9.5 @nrwl/detox : Not Found @nrwl/devkit : 13.9.5 @nrwl/eslint-plugin-nx : 13.9.5 @nrwl/express : 13.9.5 @nrwl/jest : 13.9.5 @nrwl/js : 13.9.5 @nrwl/linter : 13.9.5 @nrwl/nest : 13.9.5 @nrwl/next : 13.9.5 @nrwl/node : 13.9.5 @nrwl/nx-cloud : Not Found @nrwl/nx-plugin : Not Found @nrwl/react : 13.9.5 @nrwl/react-native : Not Found @nrwl/schematics : Not Found @nrwl/storybook : 13.5.3 @nrwl/web : 13.9.5 @nrwl/workspace : 13.9.5 typescript : 4.3.5 rxjs : 6.6.7
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:22 (3 by maintainers)
Any updates to this? I’m dealing with a similar issue:
This error often happens if you have an conflicting
.eslintrc
file up your directory tree.Example
Solutions
Choose one of the solutions below:
A. Resolve Conflict
Find the conflicting
.eslintrc
configuration file and resolve the conflict.B. Make your
.eslintrc
a root configFile:
.eslintrc.json
More info