next lint
uses yarn even though project uses npm because no package-lock.json because using turborepo
#74775
Labels
Linting
Related to `next lint` or ESLint with Next.js.
Link to the code that reproduces this issue
https://github.com/astriaorg/flame-apps
To Reproduce
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
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.
The fix here doesn't work because this is a monorepo with turborepo and there is no package-lock.json in the directory.
#31755
The text was updated successfully, but these errors were encountered: