eslint with nextjs 11 not working when following official blog
See original GitHub issueWhat version of Next.js are you using?
11
What version of Node.js are you using?
16.3.0
What browser are you using?
chrome
What operating system are you using?
ubuntu
How are you deploying your application?
docker
Describe the Bug
the command fails :
No such directory exists as the project root: /xxxx/nextjs-blog/lint
Expected Behavior
lintings files
To Reproduce
following the official blog 👍 https://nextjs.org/blog/next-11 i run :
npx create-next-app nextjs-blog --use-npm --example "https://github.com/vercel/next-learn-starter/tree/master/learn-starter"
cd nextjs-blog
npx next lint
which gives the error
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Troubleshooting a Next.js app with ESLint - LogRocket Blog
Formatting is an important issue, as some people might not follow a style, which can cause further issues, so here we are using...
Read more >eslint not working after updating eslint-config-next to v12.1.1
Verify canary release I verified that the issue exists in Next.js canary release Provide environment information Operating System: Platform: ...
Read more >Eslint plugin:@next/next/recommended does not work #26907
Create a new application npx create-next-app · Start it with eslint following the Airbnb style guide npx eslint --init · Add the "lint:...
Read more >Basic Features: ESLint - Next.js
Recommended rule-sets from the following ESLint plugins are all used within ... it possible to catch common issues and problems in a Next.js...
Read more >next.js Setting up ESLint for NextJs - Stack Overflow
ESLint will automatically start detecting errors/warnings in *.js and *.jsx files. If that's not the case then either your project has no ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just create a new app with
npx create-next-app my-app
And when I try to run yarn lint I’m facing this error.I try to install eslint again but it didn’t work!
Thank you so much @housseindjirdeh. It worked!