バージョンについて
Next.js = v11.1.2
ESLint = v8.1.0
yarn lint を実行すると以下のようなログが出力される。
yarn run v1.22.17
$ next lint
info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
error - ESLint must be installed: yarn add --dev eslint
✨ Done in 0.75s.
ESLIntのバージョン8.1.0に関する不具合
I just attempted it with yarn dlx create-next-app, which also did not work. I am going to look a little further into the issue, I saw that the run lint check on first configuration got changed in the next cli package 2 days ago, and I suspect it may introduce a breaking change again. Currently the workaround is to pin a downgraded version like 7.23.0
バージョンを7.23.0にダウングレードする。