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.
make sure both eslint and eslint-config-next are installed
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With