Skip to content

Type definitions missing #183

@InkaAlicja

Description

@InkaAlicja

I am facing an issue where TS doesn't see type definitions. I get:

Could not find a declaration file for module '@eslint/eslintrc'. '.../node_modules/@eslint/eslintrc/dist/eslintrc.cjs' implicitly has an 'any' type.
  There are types at '.../node_modules/@eslint/eslintrc/lib/types/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.

Following the errors suggestion to change moduleResolution doesn't help.

The problem seems to be that @eslint/eslintrc files are .cts. Specifically, the file with type definitions is node_modules/@eslint/eslintrc/dist/eslintrc.d.cts, but your package.json says they should be in node_modules/@eslint/eslintrc/dist/eslintrc.d.ts.

Please let me know if I'm missing something.

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