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.
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.
I had this same problem and what caused it was some forced audit fixes that changed eslint-config-next to "^0.2.4". Once I changed it back to 11.1.2 the problem was fixed.
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