Skip to content
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

next lint uses yarn even though project uses npm because no package-lock.json because using turborepo #74775

Open
steezeburger opened this issue Jan 10, 2025 · 0 comments
Labels
Linting Related to `next lint` or ESLint with Next.js.

Comments

@steezeburger
Copy link

steezeburger commented Jan 10, 2025

Link to the code that reproduces this issue

https://github.com/astriaorg/flame-apps

To Reproduce

  1. create turborepo next app
  2. cd to apps/web
  3. npm run lint

Current vs. Expected behavior

Next will try to use yarn to install eslint because no package-lock.json is found.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000
  Available memory (MB): 65536
  Available CPU cores: 10
Binaries:
  Node: 18.19.0
  npm: 10.2.3
  Yarn: 4.1.1
  pnpm: 8.10.2
Relevant Packages:
  next: 14.2.23 // An outdated version detected (latest is 15.1.4), upgrade is highly recommended!
  eslint-config-next: 14.2.23
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.4
Next.js Config:
  output: N/A
 ⚠ An outdated version detected (latest is 15.1.4), upgrade is highly recommended!
   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 area(s) are affected? (Select all that apply)

Linting

Which stage(s) are affected? (Select all that apply)

Other (Deployed)

Additional context

I was able to get around the issue by touching a package-lock.json and rerunning the command.
Screenshot 2025-01-10 at 3 59 49 PM

The fix here doesn't work because this is a monorepo with turborepo and there is no package-lock.json in the directory.
#31755

@steezeburger steezeburger added the bug Issue was opened via the bug report template. label Jan 10, 2025
@github-actions github-actions bot added the Linting Related to `next lint` or ESLint with Next.js. label Jan 10, 2025
@samcx samcx removed the bug Issue was opened via the bug report template. label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linting Related to `next lint` or ESLint with Next.js.
Projects
None yet
Development

No branches or pull requests

2 participants