next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Lint is not working on a fresh install

Open Cayan opened this issue 2 years ago • 1 comments

Verify canary release

  • [X] I verified that the issue exists in the latest Next.js canary release

Provide environment information

    Operating System:
      Platform: linux
      Arch: x64
      Version: #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022
    Binaries:
      Node: 16.13.1
      npm: 8.19.2
      Yarn: 1.22.15
      pnpm: N/A
    Relevant packages:
      next: 13.0.0
      eslint-config-next: 13.0.0
      react: 18.2.0
      react-dom: 18.2.0

warn  - Latest canary version not detected, detected: "13.0.0", newest: "13.0.1-canary.2".
        Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
        Read more - https://nextjs.org/docs/messages/opening-an-issue

Which example does this report relate to?

https://beta.nextjs.org/docs/getting-started#automatic-installation

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

Lint fails on a fresh install with the following error:

> [email protected] lint
> next lint

warn  - You have enabled experimental feature (appDir) in next.config.js.
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info  - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback

Failed to load config "react-app" to extend from.
Referenced from: <redacted>/package.json

Expected Behavior

Lint should've been executed successfully

To Reproduce

$ npx create-next-app@latest --experimental-app
$ cd <project_name>
$ npm run lint

Cayan avatar Oct 31 '22 00:10 Cayan

Just to confirm that this is still happening on 13.0.1

Cayan avatar Nov 02 '22 15:11 Cayan

Facing the same issue. Operating System: Platform: Windows Arch: x64 Version: 22.04.1-Ubuntu on WSL 2 (Windows - 21H2 - 19044.2130) Binaries: Node: 16.18.0 npm: 8.19.2 Yarn: 1.22.19 pnpm: N/A Relevant packages: next: 13.0.1 eslint-config-next: 13.0.1 react: 18.2.0 react-dom: 18.2.0 (Also using turbopack)

Running next lint asks me for the type of configuration I want, which I then set, after which it doesn't actually do anything. If I run the same command again, it asks me the same thing again.

image

hakotaco avatar Nov 02 '22 18:11 hakotaco

I am unable to reproduce this, could anyone experiencing this issue attach a reproduction repository? :pray:

balazsorban44 avatar Nov 04 '22 00:11 balazsorban44

This issue has been automatically closed because it received no activity for a month and had no reproduction to investigate. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you.

balazsorban44 avatar Dec 05 '22 23:12 balazsorban44

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

github-actions[bot] avatar Jan 05 '23 00:01 github-actions[bot]