Next.js Discord

Discord Forum

Invalid Eslint Version

Unanswered
Oriental posted this in #help-forum
Open in Discord
OrientalOP
I am trying to run my website with Vercel but the build always stops and gives these errors. I've tried changing eslint in package.json from 9 to 8.35.0, but this didn't change anything.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: eslint-config-next@14.2.3
npm ERR! Found: eslint@9.5.0
npm ERR! node_modules/eslint
npm ERR! dev eslint@"^9.5.0" from the root project
npm ERR! peer eslint@"^6.0.0 ^7.0.0 >=8.0.0" from @eslint-community/eslint-utils@4.4.0
npm ERR! node_modules/@eslint-community/eslint-utils
npm ERR! @eslint-community/eslint-utils@"^4.2.0" from eslint@9.5.0
npm ERR! 1 more (eslint-import-resolver-typescript)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^7.23.0 ^8.0.0" from eslint-config-next@14.2.3
npm ERR! node_modules/eslint-config-next
npm ERR! dev eslint-config-next@"14.2.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: eslint@8.57.0
npm ERR! node_modules/eslint
npm ERR! peer eslint@"^7.23.0
^8.0.0" from eslint-config-next@14.2.3
npm ERR! node_modules/eslint-config-next
npm ERR! dev eslint-config-next@"14.2.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

0 Replies