Issue:
Running next lint as suggested by in chapter 13 produces circular dependency issues caused by outdated configurations installed by next lint.
This version of the tool produces an .eslintrc.json file which is out of date with eslint 9^
{
"extends": [
"next/core-web-vitals",
"next/typescript"
]
}
running pnpm lint after setting it up results in:
$ pnpm lint
> @ lint /home/turkycat/scratch/nextjs/learn/nextjs-dashboard
> next lint
Converting circular structure to JSON
--> starting at object with constructor 'Object'
| property 'configs' -> object with constructor 'Object'
| property 'flat' -> object with constructor 'Object'
| ...
| property 'plugins' -> object with constructor 'Object'
--- property 'react' closes the circle
Referenced from: /<path-to>/nextjs/learn/nextjs-dashboard/.eslintrc.json
Resolved by:
following setup in this path https://nextjs.org/docs/app/api-reference/config/eslint
Issue:
Running
next lintas suggested by in chapter 13 produces circular dependency issues caused by outdated configurations installed bynext lint.This version of the tool produces an
.eslintrc.jsonfile which is out of date witheslint 9^{ "extends": [ "next/core-web-vitals", "next/typescript" ] }running
pnpm lintafter setting it up results in:Resolved by:
following setup in this path https://nextjs.org/docs/app/api-reference/config/eslint