Skip to content

eslint-plugin-next: Types not referenced correctly from package.json #85568

@alubbe

Description

@alubbe

Link to the code that reproduces this issue

I don't think we need this

To Reproduce

According to package.json the types should be in ./dist/ (https://github.com/vercel/next.js/blob/canary/packages/eslint-config-next/package.json#L45-L61), but if you just download the package, you'll see they are somehow in ./dist/src`

Current vs. Expected behavior

I'd expect that either the type files live in ./dist, as package.json says, or that package.json is updated to refer to ./dist/src

Provide environment information

I don't think we need this

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

Linting, TypeScript

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

next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    LintingRelated to `next lint` or ESLint with Next.js.TypeScriptRelated to types with Next.js.invalid linkThe issue was auto-closed due to a missing/invalid reproduction link. A new issue should be opened.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions