Skip to content

Typescript version 4.6.2 is not supported by @typescript-eslint/typescript-estree which is a dependency of eslint-config-react-app #12150

@haseebanwar

Description

@haseebanwar

Describe the bug

I am using eslint-config-react-app which uses @typescript-eslint/parser which then uses @typescript-eslint/typescript-estree under the hood.

eslint-config-react-app is using version 5.5.0 of @typescript-eslint/parser which supports the following TS versions

>=3.3.1 <4.6.0

If I use the latest TS version, it throws this warning

=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.6.0

YOUR TYPESCRIPT VERSION: 4.6.2

Please only submit bug reports when using the officially supported version.

=============

Steps to reproduce

Using eslint-config-react-app outside of create-react-app

Suggested Solution

@typescript-eslint/typescript-estree already fixed this issue in this PR with version 5.14.0

Updating @typescript-eslint/parser in eslint-config-react-app to the latest version will fix this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions