-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn lint
not working on brand new app
#29961
Comments
I've just downgrade Eslint from 8.0.1 to 7.32.0 then it's work. |
I will try that when I get access to the terminal but I think that this is a bug somehow |
This is definitely related to |
I think this is related to a change in eslint's "exports": {
"./package.json": "./package.json",
".": "./lib/api.js",
"./use-at-your-own-risk": "./lib/unsupported-api.js"
}, Which causes the require in
Removing the |
see #29770 (comment) |
Closing as this is a duplicate. Like others mentioned, you'll need to downgrade to v7 for the meantime. There's an open PR to add support for v8 (#29865). Once all sub-dependencies used in Next.js' ESLint config and plugin is supported, it'll be merged! |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
11.1.2
What version of Node.js are you using?
16.6.1
What browser are you using?
Edge 94
What operating system are you using?
Windows 11 (Insider build: 22000.258)
How are you deploying your application?
next start
Describe the Bug
When I create a brand new app using
yarn create next-app
, and try to runyarn lint
, an error is thrown:I wanted to try out linting cause apparently Im a bad developer for not doing so and I don't know what I'm doing wrong.
Expected Behavior
I would have expected it to lint my app
To Reproduce
yarn create next-app
next lint
in the app directoryThe text was updated successfully, but these errors were encountered: