question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

eslint with nextjs 11 not working when following official blog

See original GitHub issue

What 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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rootlinux2commented, Oct 18, 2021

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. image

I try to install eslint again but it didn’t work!

1reaction
nicolasguasca1commented, Jul 14, 2021

Thank you so much @housseindjirdeh. It worked!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found