Problem
As of October 13, 2021, the project created by yarn create next-app
fails with yarn lint.
yarn create next-app my-app
cd my-app
yarn lint
error - ESLint must be installed: yarn add --dev eslint
However, eslint is listed in the dependencies of the generated package.json.
"devDependencies": {
"eslint": "8.0.0",
"eslint-config-next": "11.1.2"
}
Solution
I changed the eslint version to 7.x and it worked!
yarn add --dev eslint@7.32.0
yarn lint
I did it!
Top comments (0)