Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ESLint: Failed to load config "next/core-web-vitals" to extend from [duplicate]

Tags:

eslint

next.js

enter image description here

I keep getting this error while trying to build my next.js project. The only way I found online to maybe bypass it is to ignore the eslintrc.json file. Any suggestions? Also, the file exists.

enter image description here

like image 363
Zoi K. Avatar asked Sep 14 '25 09:09

Zoi K.


2 Answers

make sure both eslint and eslint-config-next are installed

like image 128
Mohammad Avatar answered Sep 16 '25 08:09

Mohammad


This happened to me because I somehow ended up with an extra .eslintrc.json file outside of my Next project directory which was getting picked up by my IDE (WebStorm)

For example:

parent-folder
    .eslintrc.json <-- Delete this
    next-folder
        pages
        package.json
        .eslintrc.json <-- This one is correct
        tsconfig.json
        README.md
like image 25
Cyral Avatar answered Sep 16 '25 09:09

Cyral



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!