这是indexloc提供的服务,不要输入任何密码
Skip to content

Error when run lint script in with-prisma example #1852

@AlexanderKositsyn

Description

@AlexanderKositsyn

What version of Turborepo are you using?

1.4.5

What package manager are you using / does the bug impact?

npm

What operating system are you using?

Mac

Describe the Bug

I cloned turborepo form github for trying to play with with-prisma example. Then I open this example in my IDE (IDEA). Then I installed all packages with npm and tried to run rurbo lint command. But got an error.


> lint
> turbo run lint

• Packages in scope: config, database, tsconfig, web
• Running lint in 4 packages
web:lint: cache miss, executing 5cf1bb72701721fd
database:lint: cache miss, executing 0e1de302a281e55a
web:lint: 
web:lint: > web@1.0.0 lint
web:lint: > next lint
web:lint: 
database:lint: 
database:lint: > database@1.0.0 lint
database:lint: > eslint ./src --fix
database:lint: 
database:lint: 
database:lint: Oops! Something went wrong! :(
database:lint: 
database:lint: ESLint: 8.23.0
database:lint: 
database:lint: ESLint couldn't find the config "next" to extend from. Please check that the name of the config is correct.
database:lint: 
database:lint: The config "next" was referenced from the config file in "/Users/akositsyn/turborepo/.eslintrc.js".
database:lint: 
database:lint: If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
database:lint: 
database:lint: ERROR: command finished with error: command (/Users/user/turborepo/examples/with-prisma/packages/database) npm run lint exited (2)
web:lint: Failed to load config "next" to extend from.
web:lint: Referenced from: /Users/user/turborepo/.eslintrc.js
command (/Users/user/turborepo/examples/with-prisma/packages/database) npm run lint exited (2)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    2.132s 


Process finished with exit code 2

Expected Behavior

None errors.

To Reproduce

Open with-prisma example like a project. Install deps. Run npm run lint

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions